summaryrefslogtreecommitdiff
path: root/cli/cli/options.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-10 13:38:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-10 13:38:03 +0200
commita599248e9dfab9f5d57c06bed56f75941cb00047 (patch)
tree1dc188ebf4002e9c1cded6a1edb9011304c146a0 /cli/cli/options.cli
parentfab7d03508109bffb23cde8f46ed19e3d9400308 (diff)
Add multi-argument grouping support in group_scanner
Diffstat (limited to 'cli/cli/options.cli')
-rw-r--r--cli/cli/options.cli10
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/cli/options.cli b/cli/cli/options.cli
index ff462d3..9273845 100644
--- a/cli/cli/options.cli
+++ b/cli/cli/options.cli
@@ -108,11 +108,15 @@ class options
{ -f }+ { -b }+ arg +{ f=1 } +{ b=2 } # 'arg' with '-f' 'b' 'f=1' 'b=2'
\
- Note that the group applies to a single argument only. For example:
+ The group applies to a single argument only unless multiple arguments
+ are themselves grouped with '\cb{{}' and '\cb{\}}'. For example:
\
- { --foo }+ arg1 arg2 +{ --bar } # 'arg1' with '--foo' and
- # 'arg2' with '--bar'
+ { --foo }+ arg1 arg2 +{ --bar } # 'arg1' with '--foo'
+ # 'arg2' with '--bar'
+
+ { --foo }+ { arg1 arg2 } +{ --bar } # 'arg1' with '--foo' '--bar'
+ # 'arg2' with '--foo' '--bar'
\
The group separators ('\cb{{}', '\cb{\}+'}, etc) must be separate command