Issue 18790: incorrect text in argparse add_help example (original) (raw)

The last example under add_help in the documentation for the argparse module has incorrect text. It is supposed to demonstrate what happens when prefix_chars doesn't include '-', and add_help is True, but the example has the following:

usage: PROG [-h]

optional arguments: -h, --help show this help message and exit

instead of:

usage: PROG [+h]

optional arguments: +h, ++help show this help message and exit