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
Getopt documentation ambiguity #51226
Comments
the following
>>> getopt.getopt('--testing=dr'.split(), '', ['testing'])[0] would raise 'option --testing must not have an argument'. Documentation reads, however: "Long options which require an argument |
Sorry, I don't understand what the issue is. Long options with |
issue is in the wording: "Long options which require an argument I'd suggest that the docs should read something along these lines: "Long Basically, it's not clear that "optional" arguments should be passed
like this:
>>> getopt.getopt('--testing='.split(), '', ['testing'])
Note the difference with my previous example. |
Is there a way in getopt to define an option that takes an optional |
Yes, that's true Doug. May be it should be explicitly stated? |
Fixed in r75613. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: