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. --- cli/options.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'cli/options.hxx') 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_; -- cgit v1.1