summaryrefslogtreecommitdiff
path: root/cli/options.ixx
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 /cli/options.ixx
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 'cli/options.ixx')
-rw-r--r--cli/options.ixx36
1 files changed, 36 insertions, 0 deletions
diff --git a/cli/options.ixx b/cli/options.ixx
index 634e7b7..5111030 100644
--- a/cli/options.ixx
+++ b/cli/options.ixx
@@ -2066,6 +2066,42 @@ keep_separator(const bool& x)
}
inline const bool& options::
+no_combined_flags () const
+{
+ return this->no_combined_flags_;
+}
+
+inline bool& options::
+no_combined_flags ()
+{
+ return this->no_combined_flags_;
+}
+
+inline void options::
+no_combined_flags(const bool& x)
+{
+ this->no_combined_flags_ = x;
+}
+
+inline const bool& options::
+no_combined_values () const
+{
+ return this->no_combined_values_;
+}
+
+inline bool& options::
+no_combined_values ()
+{
+ return this->no_combined_values_;
+}
+
+inline void options::
+no_combined_values(const bool& x)
+{
+ this->no_combined_values_ = x;
+}
+
+inline const bool& options::
include_with_brackets () const
{
return this->include_with_brackets_;