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 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:25spaceonesetrecipients: + spaceone
2015-03-25 10:37:25spaceonesetmessageid: <1427279845.4.0.291157397861.issue23777@psf.upfronthosting.co.za>
2015-03-25 10:37:25spaceonelinkissue23777 messages
2015-03-25 10:37:25spaceonecreate