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/html.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/html.cxx') diff --git a/cli/html.cxx b/cli/html.cxx index c603dcf..9304fee 100644 --- a/cli/html.cxx +++ b/cli/html.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 << "
"; @@ -30,7 +35,6 @@ namespace os << ""; - type::doc_list const& doc (o.doc ()); string type (o.type ().name ()); std::set arg_set; -- cgit v1.1