summaryrefslogtreecommitdiff
path: root/tests/combined/test.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-01 18:37:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-01 18:37:30 +0200
commitbffe74e67f69fb4ad928230e86ca776bd39ae432 (patch)
tree93cddb51d4ffc27177ee36d17bb086434de5452e /tests/combined/test.cli
parentfc98bf23c16baf836d2c841792d4e0b35dd82727 (diff)
Implement combined flags (-xyz vs -x -y -z) and values (--foo=bar) support
Both are enabled by default but can be disable with --no-combined-flags and --no-combined-values options.
Diffstat (limited to 'tests/combined/test.cli')
-rw-r--r--tests/combined/test.cli17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/combined/test.cli b/tests/combined/test.cli
new file mode 100644
index 0000000..16f73d9
--- /dev/null
+++ b/tests/combined/test.cli
@@ -0,0 +1,17 @@
+// file : tests/combined/test.cli
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+include <string>;
+
+class options
+{
+ std::string --foo|-f;
+
+ bool -x;
+ bool -y;
+ bool -z;
+
+ bool --xyz;
+};