[issue29777] argparse arguments in main parser hide an argument in subparser

2020-11-27 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ _

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
Alan Evangelista added the comment: s/Python 2.6/Python 2/ in last comment -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
Alan Evangelista added the comment: PA> In http://bugs.python.org/issue14910#msg204678 I suggest a subclassing patch that might work with Py2. This solves my particular case. I do not use any argument with action='count', so the regression introduced by the new option does not affect me. Thank

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread paul j3
paul j3 added the comment: allow_abbrev as added with http://bugs.python.org/issue14910 I contributed to the patch, but my memory isn't fresh. The fact that this works across the subparser boundary is, in a sense, accidental. We didn't think about how abbreviations are handled across this bo

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: rejected -> stage: resolved -> needs patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread Alan Evangelista
Alan Evangelista added the comment: Adding the feature was just a workaround suggestion, but this is a bug. Arguments in the main parser should not "hide" an argument in a subparser in argument abbreviation. -- ___ Python tracker

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: No, we won't be adding new features to 2.7. Sorry. -- nosy: +eric.smith resolution: -> rejected stage: -> resolved type: -> enhancement ___ Python tracker ___

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-09 Thread Alan Evangelista
New submission from Alan Evangelista: If you have a argument named -- in a subparser and two arguments named -- in the main parser and call the Python executable with python -- argparse fails with: error: ambiguous option: -- could match --, -- This probably happens due to how the argument