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
There's no way currently to have -1 or "--++##XXX#++--" etc. as positional args, or allow things like /c or //file/... both as an option and a path. (However, that // for long opts. really shouldn't be supported at all... Add a (negative) test for that!)
But, since ~1.9 there's at least a RejectUnknown flag, the only thing left is uncomment (and implement) it. ;)
So, seeing -- could perhaps just turn that flag on, and call it a day! :-o (Which would be awkward for consistency, in case someone would like to check the flags after parsing. It's not the a very appealing attitude to use config data arbitrarily as mutable state. :) )
And it's also wrong! Even with known args, where RejectUnknown has no effect, there should be a way to disable them (to get filenames like --known).
Also, then -- -- should obviously result in a positional arg. called --. (Test it, as it's probably easy to f* up!)
The text was updated successfully, but these errors were encountered:
xparq
changed the title
-- should close name parameter lists-- should close named parameter lists
Jan 26, 2023
...unless this is disabled with the `DashDashIsPositional` flag
+ Various code quality improvements (e.g. eliminated the old private
state variables, readability renames, tentative new flag values etc.)
+ Added a busybox.exe to the test runner, because the PATH separator
mismatch between Git sh and BusyBox sh made the GitHub test fail :-/
...unless this is disabled with the `DashDashIsPositional` flag
+ Various code quality improvements (e.g. eliminated the old private
state variables, readability renames, tentative new flag values etc.)
+ Added a busybox.exe to the test runner, because the PATH separator
mismatch between Git sh and BusyBox sh made the GitHub test fail :-/
+ Oops, and also added . to the test PATH, so the new prefixless RUN cmds
can actually be found. (It worked in my local config anyway though! :-o )
There's no way currently to have
-1
or"--++##XXX#++--"
etc. as positional args, or allow things like/c
or//file/...
both as an option and a path. (However, that//
for long opts. really shouldn't be supported at all... Add a (negative) test for that!)RejectUnknown
flag, the only thing left is uncomment (and implement) it. ;)--
could perhaps just turn that flag on, and call it a day! :-o (Which would be awkward for consistency, in case someone would like to check the flags after parsing. It's not the a very appealing attitude to use config data arbitrarily as mutable state. :) )RejectUnknown
has no effect, there should be a way to disable them (to get filenames like--known
).-- --
should obviously result in a positional arg. called--
. (Test it, as it's probably easy to f* up!)The text was updated successfully, but these errors were encountered: