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

Alan Evangelista report at bugs.python.org
Thu Mar 16 16:59:56 EDT 2017


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. Thanks!

PA> The patch is big enough that I hesitate to add it to Py2.  

I see 2 solutions:
- keep this issue opened until the bug with short options is fixed and we are more confident in fixing this in Py2
- close the issue with "won't fix" resolution and add the known issue to argparse documentation in Python 2.6 doc

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29777>
_______________________________________


More information about the Python-bugs-list mailing list