mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -598,10 +598,10 @@ the help options::
|
||||||
|
|
||||||
>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
|
>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
|
||||||
>>> parser.print_help()
|
>>> parser.print_help()
|
||||||
usage: PROG [-h]
|
usage: PROG [+h]
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help show this help message and exit
|
+h, ++help show this help message and exit
|
||||||
|
|
||||||
|
|
||||||
The add_argument() method
|
The add_argument() method
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue