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 paul.j3
Recipients derks, paul.j3
Date 2015-03-22.20:01:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427054512.99.0.844230046326.issue23487@psf.upfronthosting.co.za>
In-reply-to
Content
It certainly looks like a documentation issue.  `action` doesn't make sense here.  `add_subparsers` normally creates an Action of type `_SubParsersAction`.  

'action' for normal 'add_argument' command defines the Action type created at that time.  Conceivably a user might want to use a customized '_SubParsersAction', but it shouldn't be as easy as just specifying 'action' in the 'add_subparsers' command.

And specifying something other than the default 'store' action class for the arguments of the parsers doesn't make sense.

But I'm puzzled by the error message you got.  I'll have to run some tests to figure out what is going on.
History
Date User Action Args
2015-03-22 20:01:53paul.j3setrecipients: + paul.j3, derks
2015-03-22 20:01:52paul.j3setmessageid: <1427054512.99.0.844230046326.issue23487@psf.upfronthosting.co.za>
2015-03-22 20:01:52paul.j3linkissue23487 messages
2015-03-22 20:01:52paul.j3create