diff options
Diffstat (limited to 'cli-examples/hello/hello.cli')
-rw-r--r-- | cli-examples/hello/hello.cli | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli-examples/hello/hello.cli b/cli-examples/hello/hello.cli new file mode 100644 index 0000000..b75e1b8 --- /dev/null +++ b/cli-examples/hello/hello.cli @@ -0,0 +1,18 @@ +include <string>; + +class options +{ + 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." + }; +}; |