Message226469
| Author |
paul.j3 |
| Recipients |
John.Didion, bethard, manveru, paul.j3, xuanji |
| Date |
2014年09月06日.02:58:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1409972307.0.0.631573741443.issue11588@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|