Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93e3d3a

Browse files
committed
merge from 3.2 - Issue13685
2 parents a57a8e0 + f21804a commit 93e3d3a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/argparse.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,9 @@ specifiers include the program name, ``%(prog)s`` and most keyword arguments to
11011101
optional arguments:
11021102
-h, --help show this help message and exit
11031103

1104+
As the help string supports %-formatting, if you want a literal ``%`` to appear
1105+
in the help string, you must escape it as ``%%``.
1106+
11041107
:mod:`argparse` supports silencing the help entry for certain options, by
11051108
setting the ``help`` value to ``argparse.SUPPRESS``::
11061109

0 commit comments

Comments
 (0)