diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-17 13:59:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-17 13:59:39 +0200 |
commit | 0e56fe29a9afeee00e02e722496678df89d37d50 (patch) | |
tree | ada5f6ea6978344f2e75e6194d65a1191cc6e649 /cli/html.cxx | |
parent | 577a38358b295379511ea8bb130ef1dcb7157c0f (diff) |
Complete the implementation of the option documentation
Add the man page generator. Port CLI usage, HTML documentation and the man
page to the auto-generated version. Update examples and documentation.
Diffstat (limited to 'cli/html.cxx')
-rw-r--r-- | cli/html.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/html.cxx b/cli/html.cxx index b147703..be675c7 100644 --- a/cli/html.cxx +++ b/cli/html.cxx @@ -162,6 +162,17 @@ namespace virtual void traverse (type& c) { + string const& n (options.class_ ()); + + if (!n.empty ()) + { + string fqn (fq_name (c, false)); + fqn = string (fqn, 2, fqn.size () - 2); // Get rid of leading ::. + + if (n != fqn) + return; + } + os << "<dl class=\"options\">" << endl; names (c, names_option_); @@ -170,6 +181,7 @@ namespace } private: + bool generated_; option option_; traversal::names names_option_; }; |