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
This was introduced by #36, but only worked in the specific case of all
arguments being passed before all flags. If the user mixed them, they
ended up with odd parsing behavior where the arguments were reordered
(causing #103 and #355).
Given the tradeoffs I think we should remove support for flag
reordering.
Fixes#103Fixes#355
if a
Command
is invoked ascli cmd arg1 -f arg2
where-f
is aBoolFlag
the result ofctx.Args()
in the command function will be[arg2 arg1]
.This appears to be related to #36
I have made the test case below (which currrently fails), but I am not really able to find a decent fix.
Fails with
Hope you can come up with something good.
The text was updated successfully, but these errors were encountered: