We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
argparse.BooleanOptionalAction
At the moment, argparse.BooleanOptionalAction gives e.g. --foo vs --no-foo, whose prefix is hardcoded:
--foo
--no-foo
cpython/Lib/argparse.py
Line 848 in cd516cd
Line 863 in cd516cd
It would be beneficial if we can change the prefixes of the binary options: e.g. --enable- vs --disable- like autoconf.
--enable-
--disable-
usage: [-h] [--enable-foo | --disable-foo] options: -h, --help show this help message and exit --enable-foo, --disable-foo helpstring for foo
This is a minor feature, which does not need previous discussion elsewhere
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature or enhancement
Proposal:
At the moment,
argparse.BooleanOptionalAction
gives e.g.--foo
vs--no-foo
, whose prefix is hardcoded:cpython/Lib/argparse.py
Line 848 in cd516cd
cpython/Lib/argparse.py
Line 863 in cd516cd
It would be beneficial if we can change the prefixes of the binary options: e.g.
--enable-
vs--disable-
like autoconf.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: