]> granicus.if.org Git - python/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 61cb499b1329ca96fd31f05a7819e392e0d55f30..0dc2ab444d98debdd5498eb34832c5ff18969f04 100644 (file)
@@ -579,10 +579,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