[Python-checkins] cpython (3.3): Fix prefix_chars not being applied in help text example (reported by John
georg.brandl
python-checkins at python.org
Sun Oct 6 09:50:04 CEST 2013
http://hg.python.org/cpython/rev/ee394a61dade
changeset: 86009:ee394a61dade
branch: 3.3
parent: 86005:4ffa1623730f
user: Georg Brandl <georg at python.org>
date: Sun Oct 06 09:50:36 2013 +0200
summary:
Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@)
files:
Doc/library/argparse.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -598,10 +598,10 @@
>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
>>> parser.print_help()
- usage: PROG [-h]
+ usage: PROG [+h]
optional arguments:
- -h, --help show this help message and exit
+ +h, ++help show this help message and exit
The add_argument() method
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list