From bffe74e67f69fb4ad928230e86ca776bd39ae432 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 1 Apr 2018 18:37:30 +0200 Subject: 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. --- tests/combined/test.cli | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/combined/test.cli (limited to 'tests/combined/test.cli') 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 +// copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +include ; + +class options +{ + std::string --foo|-f; + + bool -x; + bool -y; + bool -z; + + bool --xyz; +}; -- cgit v1.1