Message239246
| Author |
spaceone |
| Recipients |
spaceone |
| Date |
2015年03月25日.10:37:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1427279845.4.0.291157397861.issue23777@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
parser.add_subparsers(dest='arguments', action='append')
will raise the following exception:
File "/usr/lib/python2.7/argparse.py", line 1675, in add_subparsers
action = parsers_class(option_strings=[], **kwargs)
TypeError: __init__() got an unexpected keyword argument 'prog'
Instead of 'argparse._SubParsersAction' the class 'argparse._AppendAction' is used.
Could maybe fixed by passing the 'action' parameter to the _SubParsersAction class which then instanciates a _AppendAction and somehow uses this internally for further things. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年03月25日 10:37:25 | spaceone | set | recipients:
+ spaceone |
| 2015年03月25日 10:37:25 | spaceone | set | messageid: <1427279845.4.0.291157397861.issue23777@psf.upfronthosting.co.za> |
| 2015年03月25日 10:37:25 | spaceone | link | issue23777 messages |
| 2015年03月25日 10:37:25 | spaceone | create |
|