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.cli | |
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.cli')
-rw-r--r-- | cli/options.cli | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/options.cli b/cli/options.cli index 97b63aa..e2d04ed 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -581,6 +581,24 @@ class options incremental option parsing." }; + bool --no-combined-flags + { + "Disable support for combining multiple single-character flags into a + single argument (the \cb{-xyz} form that is equivalent to \cb{-x} \cb{-y} + \cb{-z}). An argument is considered a combination of flags if it starts + with a single option prefix (\cb{--option-prefix}) and only contains + letters and digits. Note that an option with a value may not be part of + such a combination, not even if it is specified last." + } + + bool --no-combined-values + { + "Disable support for combining an option and its value into a single + argument with the assignment sign (the \c{\i{option}\b{=}\i{value}} + form). This functionality requires a non-empty option prefix + (\cb{--option-prefix})." + } + bool --include-with-brackets { "Use angle brackets (\cb{<>}) instead of quotes (\cb{\"\"}) in the |