Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@)

This commit is contained in:
Georg Brandl 2013-10-06 09:50:36 +02:00
parent 05c8baa40f
commit 2b38582e76
1 changed files with 2 additions and 2 deletions

View 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