[issue12713] argparse: allow abbreviation of sub commands by users
Vinay Sajip
report at bugs.python.org
Tue Jun 26 15:56:31 CEST 2012
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
You could consider just a small refinement: in the first loop in _SubParsersAction.__call__ where you look for the abbreviation, you can just set parser_name = p and break. Then the logic just below that can stay as it is: all you've done is morphed the abbreviation to the full command name.
----------
nosy: +vinay.sajip
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12713>
_______________________________________
More information about the Python-bugs-list
mailing list