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 bethard, eric.araujo, paul.j3, pconnell
Date 2014-06-22.19:37:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403465826.71.0.878575331315.issue9341@psf.upfronthosting.co.za>
In-reply-to
Content
This patch accomplishes this task by adding a  _PseudoGroup class to _SubParsersAction.  It's like the _ChoicesPseudoAction except that it maintains its own _choices_actions list.

It takes advantage of the fact that formatter._format_actions is recursive when it comes to actions in _choices_actions.  In fact it is possible to define groups within groups (not that I would recommend that).

There is one simple test case in test_argparse, similar to the example in this issue.
History
Date User Action Args
2014-06-22 19:37:06paul.j3setrecipients: + paul.j3, bethard, eric.araujo, pconnell
2014-06-22 19:37:06paul.j3setmessageid: <1403465826.71.0.878575331315.issue9341@psf.upfronthosting.co.za>
2014-06-22 19:37:06paul.j3linkissue9341 messages
2014-06-22 19:37:06paul.j3create