Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
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" ---------- resolution: -> rejected stage: -> resolved status: open -> closed versions: +Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25061> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com