Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2914ce

Browse files
committed
Fix prefix_chars not being applied in help text example (reported by John Kooker on docs@)
1 parent 74883a3 commit d2914ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,10 @@ the help options::
598598

599599
>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
600600
>>> parser.print_help()
601-
usage: PROG [-h]
601+
usage: PROG [+h]
602602

603603
optional arguments:
604-
-h, --help show this help message and exit
604+
+h, ++help show this help message and exit
605605

606606

607607
The add_argument() method

0 commit comments

Comments
 (0)