Message180960
| 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:31 | chris.jerdonek | set | recipients:
+ chris.jerdonek, ncoghlan, bethard, tshepang, kushal.das |
| 2013年01月30日 01:52:31 | chris.jerdonek | set | messageid: <1359510751.71.0.00133666879516.issue14039@psf.upfronthosting.co.za> |
| 2013年01月30日 01:52:31 | chris.jerdonek | link | issue14039 messages |
| 2013年01月30日 01:52:31 | chris.jerdonek | create |
|