diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-01 18:37:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-01 18:37:30 +0200 |
commit | bffe74e67f69fb4ad928230e86ca776bd39ae432 (patch) | |
tree | 93cddb51d4ffc27177ee36d17bb086434de5452e /tests/combined/test.cli | |
parent | fc98bf23c16baf836d2c841792d4e0b35dd82727 (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.cli | 17 |
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; +}; |