Allow mixing order of options and positional arguments
Closed this issue · 1 comments
joeltg commented
Right now, the first positional argument ends parsing of options, meaning that ./foo bar --baz
is parsed as two positional arguments "bar"
and "--baz"
, even if --baz
is declared as a boolean option.
Is this intentional? Most tools accept options anywhere, especially at the end (useful for appending --verbose
or similar without having to edit the previous command too much, etc).
If I understand the code right, deleting this line would continue parsing options after encountering the first positional argument (though I haven't tested this).