Message221297
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. |
|
Date |
User |
Action |
Args |
2014-06-22 19:37:06 | paul.j3 | set | recipients:
+ paul.j3, bethard, eric.araujo, pconnell |
2014-06-22 19:37:06 | paul.j3 | set | messageid: <1403465826.71.0.878575331315.issue9341@psf.upfronthosting.co.za> |
2014-06-22 19:37:06 | paul.j3 | link | issue9341 messages |
2014-06-22 19:37:06 | paul.j3 | create | |
|