Steven Bethard <steven.beth...@gmail.com> added the comment:

I don't think this is a bug. You've specified two arguments with the same 
destination, "foo". This means that argparse will parse the first one, assign 
it to the attribute "foo" and then parse the second one and assign it to the 
attribute "foo" again, overwriting the previous one. So you only see the second 
one, but the first one wasn't ignored.

If you didn't want them to overwrite the same attribute, you either need to 
declare them as action="append" so that they both add to the same attribute, or 
you need to declare them with different destinations (and use metavar="foo" if 
you want them to display the same way).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to