-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error/warning about "no such option" when 'positional_arguments == TRUE' #34
Comments
(sorry about the weird formatting.) |
I can confirm that currently the I played around with with Python's
Throwing an error might be a non-reverse-compatible change for certain users but perhaps I should at least try to detect such situations and at least throw a warning instead of simply interpreting them as positional arguments. |
Trevor, thanks for the reply. maybe a flag to OptionParser() or parse_args() that defaults to the current behavior (with or without a warning), but allows one to choose to have an error thrown if desired? |
thanks! |
hi. thanks for doing these. (as my sister says, "no good deed goes unpunished".)
i may be missing something that's obvious, but in my simple attempt, i don't see optparse complaining about invalid options. i.e., i would think the following would give an error:
the unix shell command, and, lazy that i am to check, i think getopt(3), etc., do:
again, thanks, and sorry if i'm missing the blindingly obvious.
The text was updated successfully, but these errors were encountered: