[issue26967] argparse: allow_abbrev=False stops -vv from working

2020-02-18 Thread miss-islington
miss-islington added the comment: New changeset e412cbba52e7cf6699720d99a4b88baef92db7b2 by Miss Islington (bot) in branch '3.8': [3.8] bpo-39546: argparse: Honor allow_abbrev=False for specified prefix_chars (GH-18337) (GH-18543) https://github.com/python/cpython/commit/e412cbba52e7cf669972

[issue26967] argparse: allow_abbrev=False stops -vv from working

2020-02-18 Thread miss-islington
miss-islington added the comment: New changeset 8edfc47baec7ff4cb1b9db83dd35c8ffc1d498a4 by Kyle Meyer in branch 'master': bpo-39546: argparse: Honor allow_abbrev=False for specified prefix_chars (GH-18337) https://github.com/python/cpython/commit/8edfc47baec7ff4cb1b9db83dd35c8ffc1d498a4 -

[issue26967] argparse: allow_abbrev=False stops -vv from working

2020-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +17921 pull_request: https://github.com/python/cpython/pull/18543 ___ Python tracker ___ __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2020-02-03 Thread Kyle Meyer
Change by Kyle Meyer : -- pull_requests: +17710 pull_request: https://github.com/python/cpython/pull/18337 ___ Python tracker ___ __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-14 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset b1e4d1b6032d4c82b549233fa08a2c7cfe7e818b by Petr Viktorin (Miss Islington (bot)) in branch '3.8': bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759) https://github.com/python/cpython/commit/b1e4d1b6032d4c82b549233fa08a2c7c

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset dffca9e925ee5c3072663cbe8d4d4768406d5307 by Miss Islington (bot) (Zac Hatfield-Dodds) in branch 'master': bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) https://github.com/python/cpython/commit/dffca9e925ee5c3072663cbe8d4d476840

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14553 pull_request: https://github.com/python/cpython/pull/14759 ___ Python tracker ___ __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-02 Thread daniel hahler
daniel hahler added the comment: https://github.com/python/cpython/pull/14316 has a fix. -- nosy: +blueyed versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-06-22 Thread Zac Hatfield-Dodds
Change by Zac Hatfield-Dodds : -- keywords: +patch pull_requests: +14140 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14316 ___ Python tracker __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-03-07 Thread Lukáš Hrázký
Lukáš Hrázký added the comment: Sad to see this still wasn't fixed. The abbreviation "feature" creates ambiguity and room for error and this bug makes the switch unusable for a lot of applications. -- nosy: +lukash ___ Python tracker

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-08 Thread paul j3
paul j3 added the comment: Someone needs to take the current argparse.py, set the default value of this parameter to False, and run the unittest file. This should turn up this case, and possibly others that fail when abbreviations are turned off. Then we have to debate whether such failures

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-08 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-08 Thread paul j3
paul j3 added the comment: It's been 2 years since I worked on this patch. In the issue discussion http://bugs.python.org/issue14910 there was no mention of short v long options. The unit tests only look at longs. The result is that with the abbrev off, it disables all use of combined shorts

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-06 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with you. But right now, it seems parsing short options and allow_abbrev both rely on the same logic. If you turn off allow_abbrev, short options parsing also disabled. Separating them seems nontrivial. -- ___

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-06 Thread Michael Kruse
Michael Kruse added the comment: I think the allow_abbrev option should be orthogonal on how short options are parsed. I am using parse_known_args() to forward the unrecognized args to another program, therefore allow_abbrev=False is essential. There is a special handling for short options in

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: After some research I suggest to document this behaviour that allow_abbrev=False will suspend option prefix matching. Simply fixing the count action behaviour is not enough since it also prevents you from creating custom actions that want to use option prefix mat

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: This is a side effect introduced by 99302634d756. You have to set allow_abbrev to True to make such match succeed. I think this is a bug. -- ___ Python tracker __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +3.5regression nosy: +berker.peksag stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___ __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Michael Kruse
New submission from Michael Kruse: #! /usr/bin/env python3 import argparse parser = argparse.ArgumentParser(allow_abbrev=True) parser.add_argument('-v', '--verbose', action='count') print(parser.parse_args(['-vv'])) parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument('-v',