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.ixx | |
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.ixx')
-rw-r--r-- | cli/options.ixx | 36 |
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_; |