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 rhettinger
Recipients barry, bethard, desbma, leycec, paul.j3, rhettinger
Date 2019-08-30.06:22:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567146170.64.0.850240193799.issue25061@roundup.psfhosted.org>
In-reply-to
Content
Even with the proposed converter class, I don't see a straight-forward way to meet the OP's goal of just specifying type=EnumConverter(MyEnum)
to get all of:

* display all possible values in help
* display them in lowercase
* accept them in lowercase
* and convert them back to the correct case before casting to Enum 
* interact meaningfully with "default"
* and not interact badly with "choices"
History
Date User Action Args
2019-08-30 06:22:50rhettingersetrecipients: + rhettinger, barry, bethard, paul.j3, desbma, leycec
2019-08-30 06:22:50rhettingersetmessageid: <1567146170.64.0.850240193799.issue25061@roundup.psfhosted.org>
2019-08-30 06:22:50rhettingerlinkissue25061 messages
2019-08-30 06:22:50rhettingercreate