summaryrefslogtreecommitdiffstats
path: root/Misc/ACKS
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-08-03 17:56:09 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-08-03 17:56:09 (GMT)
commit88c49fe32054e28627eb41134656da606e9f9595 (patch)
treedab77fd4ece6d10f22bcba57ced3b824f2df69d2 /Misc/ACKS
parentf767f08e290d0caa42148083940a08e8425b18f2 (diff)
downloadcpython-88c49fe32054e28627eb41134656da606e9f9595.zip
cpython-88c49fe32054e28627eb41134656da606e9f9595.tar.gz
cpython-88c49fe32054e28627eb41134656da606e9f9595.tar.bz2
#9444: use first of prefix_chars for help opt instead of raising error
An argparse option parser created with a prefix_chars that did not include a '-' would happily add -h and --help options, and then throw an error when it tried to format the help because the - was an invalid prefix character. This patch makes it use the first character of prefix_chars as the character for the help options if and only if '-' is not one of the valid prefix_chars. Fix by Theodore Turocy, unit tests by Catherine Devlin.
Diffstat (limited to 'Misc/ACKS')
-rw-r--r--Misc/ACKS1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 480e35d..0347f67 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -802,6 +802,7 @@ John Tromp
Jason Trowbridge
Anthony Tuininga
Stephen Turner
+Theodore Turocy
Bill Tutt
Doobee R. Tzeck
Eren Türkay