[issue9234] argparse: aliases for positional arguments (subparsers)

Éric Araujo report at bugs.python.org
Mon Dec 13 10:18:06 CET 2010

Éric Araujo <merwok at netwok.org> added the comment:

Patch looks good.  Can you add tests for the new functionality?  (This is listed in the link I gave you :)

Note: this code

    if 'aliases' in kwargs:
        aliases = kwargs.pop('aliases')
        aliases = ()

can be shortened to

    aliases = kwargs.pop('aliases', ())

versions: +Python 3.3 -Python 3.2

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list