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 74883a3751
commit d2914ce0f7
1 changed files with 2 additions and 2 deletions

View 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