Message350855
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" |
|
Date |
User |
Action |
Args |
2019-08-30 06:22:50 | rhettinger | set | recipients:
+ rhettinger, barry, bethard, paul.j3, desbma, leycec |
2019-08-30 06:22:50 | rhettinger | set | messageid: <1567146170.64.0.850240193799.issue25061@roundup.psfhosted.org> |
2019-08-30 06:22:50 | rhettinger | link | issue25061 messages |
2019-08-30 06:22:50 | rhettinger | create | |
|