This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Unknown options are silently ignored and mixed with positional arguments #58
Labels
bug
Something isn't working
When there are options as well as positional arguments, some of which may be optional, there is a problem with unknown options. Consider this repro case:
which leads to this output:
This is a problem, because
--bar
as is not reported as unknown/invalid option, but passed to the next positional argument. It is pretty unlikely that the user intended to use--bar
as a positional argument -- most likely they made a typo or another mistake and need to read the help page.The text was updated successfully, but these errors were encountered: