Message226469
Attached is a patch for 3.5.0 dev that adds UsageGroups. Now different 'kinds' are implemented as subclasses, which are accessed via the registry:
_XorUsageGroup - replicate action of MutuallyExclusiveGroups
_AndUsageGroup - an inclusive group
_OrUsageGroup - an 'any' group
_NorUsageGroup - NotOr - also works as Not
_NandUsageGroup - NotAnd
Open issues:
- what difference should the 'required' parameter make?
- how should 'errors' in nested groups propagate?
- formatting of error messages
- formatting the usage line with these groups
- any additional 'help' display
- framework for custom test and/or subclasses
- documentation, sample scripts, and formal testing |
|
Date |
User |
Action |
Args |
2014-09-06 02:58:27 | paul.j3 | set | recipients:
+ paul.j3, bethard, xuanji, John.Didion, manveru |
2014-09-06 02:58:27 | paul.j3 | set | messageid: <1409972307.0.0.631573741443.issue11588@psf.upfronthosting.co.za> |
2014-09-06 02:58:26 | paul.j3 | link | issue11588 messages |
2014-09-06 02:58:26 | paul.j3 | create | |
|