]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix prefix_chars not being applied in help text example (reported by John Kooker...
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 07:50:36 +0000 (09:50 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 07:50:36 +0000 (09:50 +0200)
Doc/library/argparse.rst

index 7267ae4ca3c4d5559a3216101367defc7f6e0088..2f341b78f4d7ad55d3e2d19b6deefafd119221d8 100644 (file)
@@ -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