Message382094
choices is fine for a few strings, but quickly becomes awkward with other types and large numbers. The testing isn't an issue, since it just does a simple `in/contains` test. But display, whether in usage, help or error, is problematic if you try anything too fancy. metavar gets around some of those issues, but doesn't change the error messages.
Custom type or action is the best alternative.
I'm in favor omitting the enums mention in the docs, since it seems to be more confusing than helpful. |
|
Date |
User |
Action |
Args |
2020-11-29 21:22:39 | paul.j3 | set | recipients:
+ paul.j3, rhettinger, xtreak, shangxiao |
2020-11-29 21:22:39 | paul.j3 | set | messageid: <1606684959.01.0.720570152233.issue42501@roundup.psfhosted.org> |
2020-11-29 21:22:39 | paul.j3 | link | issue42501 messages |
2020-11-29 21:22:38 | paul.j3 | create | |
|