You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key-value pair may begin with a single dash, a pair of dashes (double dash), or a forward slash. Single and double dashes indicate the use of short
77
77
or long names, respectively, which are covered below. The forward slash may represent either, but does not allow for the grouping of parameterless
@@ -86,6 +86,9 @@ Values may be any alphanumeric sequence, however if a value contains a space it
86
86
Any word, or phrase enclosed in single or double quotes, will be parsed as an operand. The official specification requires operands to appear last, however this library will
87
87
parse them in any position.
88
88
89
+
A double-hyphen ```--```, not enclosed in single or double quotes, and appearing with whitespace on either side, designates the end of the argument list and beginning of
90
+
the operand list. Anything appearing after this delimiter is treated as an operand, even if it begins with a hyphen, double-hyphen or forward slash.
91
+
89
92
### Short Names
90
93
91
94
Short names consist of a single character, and arguments without parameters may be grouped. A grouping may be terminated with a single argument containing
@@ -158,11 +161,12 @@ new | slashes are ok too
158
161
159
162
### Operands
160
163
161
-
Any text in the string that doesn't match the argument-value format is considered an operand.
164
+
Any text in the string that doesn't match the argument-value format is considered an operand. Any text which appears after a double-hyphen ```--```, not enclosed in single or double quotes, and with spaces on either side,
165
+
is treated as an operand regardless of whether it matches the argument-value format.
162
166
163
167
#### Example
164
168
165
-
```-a foo bar "hello world" -b```
169
+
```-a foo bar "hello world" -b -- -explicit operand```
0 commit comments