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 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:27paul.j3setrecipients: + paul.j3, bethard, xuanji, John.Didion, manveru
2014-09-06 02:58:27paul.j3setmessageid: <1409972307.0.0.631573741443.issue11588@psf.upfronthosting.co.za>
2014-09-06 02:58:26paul.j3linkissue11588 messages
2014-09-06 02:58:26paul.j3create