aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/man.cc
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2008-03-04 12:55:32 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2008-03-04 12:55:32 +0000
commit0b7747c4f5df3f1e4968f443fb2044f8f1192498 (patch)
tree7eac865378a01c098ea892f38745c5cbf0412402 /paludis/args/man.cc
parentd280fe7e6c57c31329d3623910dad02da3caaa42 (diff)
downloadpaludis-0b7747c4f5df3f1e4968f443fb2044f8f1192498.tar.gz
paludis-0b7747c4f5df3f1e4968f443fb2044f8f1192498.tar.xz
Allow hidden alias arguments that don't appear in help
Diffstat (limited to 'paludis/args/man.cc')
-rw-r--r--paludis/args/man.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index a4163b1b6..69e995d9b 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -20,6 +20,7 @@
#include "man.hh"
#include <paludis/util/visitor-impl.hh>
#include <paludis/util/tr1_functional.hh>
+#include <paludis/util/visitor_cast.hh>
#include <ostream>
#include <sstream>
#include <algorithm>
@@ -114,6 +115,9 @@ paludis::args::generate_doc(DocWriter & dw, const ArgsHandler * const h)
for (paludis::args::ArgsGroup::ConstIterator b((*a)->begin()), b_end((*a)->end()) ;
b != b_end ; ++b)
{
+ if (visitor_cast<const paludis::args::AliasArg>(**b) && visitor_cast<const paludis::args::AliasArg>(**b)->hidden())
+ continue;
+
dw.arg_group_item((*b)->short_name(), (*b)->long_name(),
(*b)->can_be_negated() ? "no-" + (*b)->long_name() : "", (*b)->description());