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 berker.peksag, derks, paul.j3, spaceone
Date 2015-03-25.10:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427280564.31.0.457142174933.issue23487@psf.upfronthosting.co.za>
In-reply-to
Content
In replay to msg238931 from paul j3 (paul.j3) *
> And specifying something other than the default 'store' action class for the arguments of the parsers doesn't make sense.
Of course it makes sense. If you e.g. want the action to be 'append' so that the subparser-name is appended to a already existing list / or to create a new list with the subparser-name as first argument.
E.g.:

parser.add_subparser(dest='foo', action='append')
parser.parse_args('bar').__dict__ == {'foo': ['bar']}
History
Date User Action Args
2015-03-25 10:49:24spaceonesetrecipients: + spaceone, berker.peksag, derks, paul.j3
2015-03-25 10:49:24spaceonesetmessageid: <1427280564.31.0.457142174933.issue23487@psf.upfronthosting.co.za>
2015-03-25 10:49:24spaceonelinkissue23487 messages
2015-03-25 10:49:24spaceonecreate