diff options
author | Georg Brandl <georg@python.org> | 2013-10-06 07:50:36 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-06 07:50:36 (GMT) |
commit | d2914ce0f703554638ec696d8e4b34f46e476b65 (patch) | |
tree | c307e2b53bfe6f6599f31941cb62a1aa4b9685ef | |
parent | 74883a3751c5873f8c5b0e7d647722d76ebafe08 (diff) | |
download | cpython-d2914ce0f703554638ec696d8e4b34f46e476b65.zip cpython-d2914ce0f703554638ec696d8e4b34f46e476b65.tar.gz cpython-d2914ce0f703554638ec696d8e4b34f46e476b65.tar.bz2 |
Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@)
-rw-r--r-- | Doc/library/argparse.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 7267ae4..2f341b7 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -598,10 +598,10 @@ the help options:: >>> 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 |