From 0e56fe29a9afeee00e02e722496678df89d37d50 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Nov 2009 13:59:39 +0200 Subject: 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. --- cli/options.ixx | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 6 deletions(-) (limited to 'cli/options.ixx') diff --git a/cli/options.ixx b/cli/options.ixx index 6cf5899..1745d4a 100644 --- a/cli/options.ixx +++ b/cli/options.ixx @@ -119,6 +119,18 @@ suppress_usage () const } inline const bool& options:: +long_usage () const +{ + return long_usage_; +} + +inline const std::size_t& options:: +option_length () const +{ + return option_length_; +} + +inline const bool& options:: generate_cxx () const { return generate_cxx_; @@ -136,16 +148,40 @@ generate_html () const return generate_html_; } -inline const bool& options:: -stdout () const +inline const std::string& options:: +man_prologue () const { - return stdout_; + return man_prologue_; } -inline const std::size_t& options:: -option_length () const +inline const std::string& options:: +man_epilogue () const { - return option_length_; + return man_epilogue_; +} + +inline const std::string& options:: +html_prologue () const +{ + return html_prologue_; +} + +inline const std::string& options:: +html_epilogue () const +{ + return html_epilogue_; +} + +inline const std::string& options:: +class_ () const +{ + return class__; +} + +inline const bool& options:: +stdout () const +{ + return stdout_; } inline const std::string& options:: @@ -167,6 +203,12 @@ cxx_suffix () const } inline const std::string& options:: +man_suffix () const +{ + return man_suffix_; +} + +inline const std::string& options:: html_suffix () const { return html_suffix_; -- cgit v1.1