I'm voting for this feature as well. It will be great to have it!
I recently hacked together a sort-of-working solution for aliases in
argparse. It's not very pretty, but it works:
http://gist.github.com/471779
I think this issue tracker is supposed to be shut down, though -- should I
open a bug on Python's bug tracker for this request?
I'm not a maintainer, but sure, go ahead a open it, especially if you have
a patch working.
Yes, that's right, please post patches, bugs, etc. to the main Python
tracker. Feel free to assign it to "bethard" when you do. I'm hoping to get
some time to get caught up on all the argparse bugs at EuroPython.
Great! I've filed the bug over here:
http://bugs.python.org/issue9234
(Sorry, but I couldn't figure out how to assign the issue to you.)
Let me know if you'd like me to put together a more polished patch.
Comment #7 on issue 23 by steven.bethard: Feature Request: Positional
Argument Aliases
http://code.google.com/p/argparse/issues/detail?id=23
Moved to http://bugs.python.org/issue9234
as 9234 is resolved now, are there any chances of a new release of the
standalone argparse for those of us stuck in legacy 2.6 land?
It's not likely - I just don't have enough time for argparse these days to
both maintain the one in the standard library and to release it externally.
Have you tried just using the argparse.py from the Python 2.7 library
directly?