This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bethard
Recipients bethard, flox, mapleoin
Date 2012-07-22.22:37:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342996656.62.0.0171950098764.issue15271@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-07-22 22:37:36bethardsetrecipients: + bethard, flox, mapleoin
2012-07-22 22:37:36bethardsetmessageid: <1342996656.62.0.0171950098764.issue15271@psf.upfronthosting.co.za>
2012-07-22 22:37:36bethardlinkissue15271 messages
2012-07-22 22:37:35bethardcreate