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 /cli/options.hxx | |
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 'cli/options.hxx')
-rw-r--r-- | cli/options.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cli/options.hxx b/cli/options.hxx index 8a93b43..dae58b6 100644 --- a/cli/options.hxx +++ b/cli/options.hxx @@ -1329,6 +1329,24 @@ class options keep_separator (const bool&); const bool& + no_combined_flags () const; + + bool& + no_combined_flags (); + + void + no_combined_flags (const bool&); + + const bool& + no_combined_values () const; + + bool& + no_combined_values (); + + void + no_combined_values (const bool&); + + const bool& include_with_brackets () const; bool& @@ -1534,6 +1552,8 @@ class options std::string option_separator_; bool option_separator_specified_; bool keep_separator_; + bool no_combined_flags_; + bool no_combined_values_; bool include_with_brackets_; std::string include_prefix_; bool include_prefix_specified_; |