diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-09 10:46:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-09 10:46:51 +0200 |
commit | 89ce153311d9163bbc356927346c0b30e158a75f (patch) | |
tree | a56025fdafd3dc63a84fe708716aca77dc85e1dc /cli/man.cxx | |
parent | 3e10322425fa0a3cf6e125bc6f9d833b015cc9b5 (diff) |
Add support for suppressing documentation for undocumented options
Diffstat (limited to 'cli/man.cxx')
-rw-r--r-- | cli/man.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/man.cxx b/cli/man.cxx index 821fc15..ab979ab 100644 --- a/cli/man.cxx +++ b/cli/man.cxx @@ -16,6 +16,11 @@ namespace { using semantics::names; + type::doc_list const& doc (o.doc ()); + + if (options.suppress_undocumented () && doc.empty ()) + return; + names& n (o.named ()); os << ".IP \"\\fB"; @@ -30,7 +35,6 @@ namespace os << "\\fP"; - type::doc_list const& doc (o.doc ()); string type (o.type ().name ()); std::set<string> arg_set; |