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 wiki discusses how to correctly handle a double hyphen / double dash (--), but the suggested solution doesn't work when defaultOption is set, particularly alongside multiple:
That's not what -- means: the whole point is that encountering -- should mean that --verbose is interpreted as a positional argument rather than as a flag.
On the other hand, if you have defaultOption: false, then it will stop when it encounters the first positional argument, and the above invocation will result in
The wiki discusses how to correctly handle a double hyphen / double dash (
--
), but the suggested solution doesn't work whendefaultOption
is set, particularly alongsidemultiple
:run with
produces
That's not what
--
means: the whole point is that encountering--
should mean that--verbose
is interpreted as a positional argument rather than as a flag.On the other hand, if you have
defaultOption: false
, then it will stop when it encounters the first positional argument, and the above invocation will result ini.e. it will fail to parse
-t
.So neither approach actually allows you to correctly handle
--
.For now, I'm working around it by manually splicing out the
--
part before invokingcommandLineArgs
:which gives for the above invocation
which is the right thing.
The text was updated successfully, but these errors were encountered: