From 5a2da5767e796bcfdaf5ebf3b80b93c57d31d0aa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Nov 2015 11:43:19 +0200 Subject: Support specifying documentation variables on command line --- cli/options.cli | 87 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 38 deletions(-) (limited to 'cli/options.cli') diff --git a/cli/options.cli b/cli/options.cli index 7f8e2dc..841081d 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -65,6 +65,15 @@ class options made inline. This option suppresses creation of the inline file." }; + std::string --cli-namespace = "::cli" + { + "", + "Generate the CLI support types in the namespace (\cb{cli} by + default). The namespace can be nested, for example \cb{details::cli}. + If the namespace is empty, then the support types are generated in + the global namespace." + }; + std::string --ostream-type = "::std::ostream" { "", @@ -72,6 +81,29 @@ class options should be used to print usage and exception information." }; + bool --generate-cxx + { + "Generate C++ code. If neither \cb{--generate-man} nor \cb{--generate-html} + is specified, this mode is assumed by default." + }; + + bool --generate-man + { + "Generate documentation in the man page format." + }; + + bool --generate-html + { + "Generate documentation in the HTML format." + }; + + bool --stdout + { + "Write output to STDOUT instead of a file. This option is not valid + when generating C++ code and is normally used to combine generated + documentation for several option classes in a single file." + }; + bool --suppress-undocumented { "Suppress the generation of documentation entries for undocumented @@ -112,29 +144,27 @@ class options "Exclude base class information from usage and documentation." }; - std::string --cli-namespace = "::cli" - { - "", - "Generate the CLI support types in the namespace (\cb{cli} by - default). The namespace can be nested, for example \cb{details::cli}. - If the namespace is empty, then the support types are generated in - the global namespace." - }; - - bool --generate-cxx - { - "Generate C++ code. If neither \cb{--generate-man} nor \cb{--generate-html} - is specified, this mode is assumed by default." - }; - - bool --generate-man + std::vector --class { - "Generate documentation in the man page format." + "", + "Generate the man page or HTML documentation only for the options + class. The name should be a fully-qualified options class name, + for example, \cb{app::options}. To generate documentation for multiple + classes, repeat this option and the documentation will be produced in + the order specified. This functionality is useful if you need to assemble + documentation from multiple classes in a specific order or to insert + custom documentation between options belonging to different classes." }; - bool --generate-html + std::map --docvar|-v { - "Generate documentation in the HTML format." + "=", + "Set documentation variable to the value . Documentation + variables can be substituted in prologues and epilogues (see + \cb{--*-prologue*} and \cb{--*-epilogue*} options) using the + \cb{$}\cb{$} expansion syntax (use \cb{$$} to escape expansion). + They can also be defined in \cb{.cli} files using the + \c{\"\\=\"} syntax." }; // Prologues. @@ -273,25 +303,6 @@ class options "Insert the content of at the end of the generated HTML file." }; - std::vector --class - { - "", - "Generate the man page or HTML documentation only for the options - class. The name should be a fully-qualified options class name, - for example, \cb{app::options}. To generate documentation for multiple - classes, repeat this option and the documentation will be produced in - the order specified. This functionality is useful if you need to assemble - documentation from multiple classes in a specific order or to insert - custom documentation between options belonging to different classes." - }; - - bool --stdout - { - "Write output to STDOUT instead of a file. This option is not valid - when generating C++ code and is normally used to combine generated - documentation for several option classes in a single file." - }; - std::string --hxx-suffix = ".hxx" { "", -- cgit v1.1