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 /examples/hello/hello.cli | |
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 'examples/hello/hello.cli')
-rw-r--r-- | examples/hello/hello.cli | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/examples/hello/hello.cli b/examples/hello/hello.cli index 9907510..b75e1b8 100644 --- a/examples/hello/hello.cli +++ b/examples/hello/hello.cli @@ -2,7 +2,17 @@ include <string>; class options { - bool --help; - std::string --greeting = "Hello"; - unsigned int --exclamations = 1; + bool --help {"Print usage information and exit."}; + + std::string --greeting = "Hello" + { + "<text>", + "Use <text> as a greeting phrase instead of the default \"Hello\"." + }; + + unsigned int --exclamations = 1 + { + "<num>", + "Print <num> exclamation marks instead of 1 by default." + }; }; |