Introduce possible_values_t #3201
Labels
A-derive
Area: #[derive]` macro API
C-enhancement
Category: Raise on the bar on expectations
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Please complete the following tasks
Clap Version
3.0.0-rc.7
Describe your use case
possible_values
are not chacked for ranges at compile time, like adefault_value_t
and this slightly reduce the robustness of the code.For example, this code compiles and fails at runtime:
Describe the solution you'd like
The following code should result in error like this:
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: