Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@)
This commit is contained in:
parent
05c8baa40f
commit
2b38582e76
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue