From 720c5a33b6a49cf328fdd7611f49153cf8f60247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 Apr 2020 14:51:57 +0300 Subject: Separate tests and examples into individual packages Also make cli module to be explicitly enabled via the config.cli configuration variable. --- cli-examples/hello/hello.cli | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cli-examples/hello/hello.cli (limited to 'cli-examples/hello/hello.cli') 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 ; + +class options +{ + bool --help {"Print usage information and exit."}; + + std::string --greeting = "Hello" + { + "", + "Use as a greeting phrase instead of the default \"Hello\"." + }; + + unsigned int --exclamations = 1 + { + "", + "Print exclamation marks instead of 1 by default." + }; +}; -- cgit v1.1