From 89ce153311d9163bbc356927346c0b30e158a75f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Nov 2010 10:46:51 +0200 Subject: Add support for suppressing documentation for undocumented options --- cli/man.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/man.cxx') 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 arg_set; -- cgit v1.1