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
from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument( "-v", dest="verbose", help="duck around %", action='store_true' ) # Find out options = parser.parse_args()
Run this with a '-h' on the commandline, and watch the pretty backtrace
3.10
Linux
The text was updated successfully, but these errors were encountered:
This is intended, % is used for format strings. To escape it, use %% (see the docs):
%
%%
parser.add_argument( "-v", dest="verbose", help="duck around %%", action='store_true' )
Sorry, something went wrong.
Please ask about puzzling behavior on https://discuss.python.org/c/help/7, where answers are more visible to others.
No branches or pull requests
Bug report
Bug description:
Run this with a '-h' on the commandline, and watch the pretty backtrace
CPython versions tested on:
3.10
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: