mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #13685 - Update argparse help message for % sign usage.
This commit is contained in:
parent
3e6d71d336
commit
f21804ad61
1 changed files with 3 additions and 0 deletions
|
@ -1082,6 +1082,9 @@ specifiers include the program name, ``%(prog)s`` and most keyword arguments to
|
|||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
|
||||
As the help string supports %-formatting, if you want a literal ``%`` to appear
|
||||
in the help string, you must escape it as ``%%``.
|
||||
|
||||
:mod:`argparse` supports silencing the help entry for certain options, by
|
||||
setting the ``help`` value to ``argparse.SUPPRESS``::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue