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