summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-06-26 06:18:19 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-06-26 06:18:19 (GMT)
commit93e3d3ac094f788260bd61b74a0a99847466dd0e (patch)
treef7ccc55e8b86b49de01b7d924728c0ef3dba897c /Doc/library/argparse.rst
parenta57a8e072c8a6f6c5b71abaf245892977ee372dc (diff)
parentf21804ad61af980cd6659ca8471b111675b9d20c (diff)
downloadcpython-93e3d3ac094f788260bd61b74a0a99847466dd0e.zip
cpython-93e3d3ac094f788260bd61b74a0a99847466dd0e.tar.gz
cpython-93e3d3ac094f788260bd61b74a0a99847466dd0e.tar.bz2
merge from 3.2 - Issue13685
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 8e7fa5e..21f06f3 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1101,6 +1101,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``::