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 chris.jerdonek
Recipients bethard, chris.jerdonek, kushal.das, ncoghlan, tshepang
Date 2013-01-30.01:52:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359510751.71.0.00133666879516.issue14039@psf.upfronthosting.co.za>
In-reply-to
Content
Have you tried setting the metavar property on the return value of add_subparsers()?  I tried this, and it seems to work.

It looks like the logic for _metavar_formatter() is the same no matter what the action type (specifically _SubParsersAction in this case):

http://hg.python.org/cpython/file/e81cad0c722a/Lib/argparse.py#l554
History
Date User Action Args
2013-01-30 01:52:31chris.jerdoneksetrecipients: + chris.jerdonek, ncoghlan, bethard, tshepang, kushal.das
2013-01-30 01:52:31chris.jerdoneksetmessageid: <1359510751.71.0.00133666879516.issue14039@psf.upfronthosting.co.za>
2013-01-30 01:52:31chris.jerdoneklinkissue14039 messages
2013-01-30 01:52:31chris.jerdonekcreate