summaryrefslogtreecommitdiffstats
path: root/Misc/ACKS
diff options
context:
space:
mode:
authorZac Hatfield-Dodds <Zac-HD@users.noreply.github.com>2019-07-14 05:35:58 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-14 05:35:58 (GMT)
commitdffca9e925ee5c3072663cbe8d4d4768406d5307 (patch)
treed7a4e205a3dc47cb6e327c8df1d8f6cae4bf9483 /Misc/ACKS
parent014847034bfc67e7b7d7e9e01d664e1e8864be9d (diff)
downloadcpython-dffca9e925ee5c3072663cbe8d4d4768406d5307.zip
cpython-dffca9e925ee5c3072663cbe8d4d4768406d5307.tar.gz
cpython-dffca9e925ee5c3072663cbe8d4d4768406d5307.tar.bz2
bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316)
The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing. However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this. This was prompted by pytest-dev/pytest#5469, so a backport to at least 3.8 would be great :smile: And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967
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 b2a6011..3e6a0ac 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -645,6 +645,7 @@ Travis B. Hartwell
Shane Harvey
Larry Hastings
Tim Hatch
+Zac Hatfield-Dodds
Shane Hathaway
Michael Haubenwallner
Janko Hauser