Using an enum for the default_value or the possible_values #3287
Labels
A-derive
Area: #[derive]` macro API
C-bug
Category: Updating dependencies
S-duplicate
Status: Closed as Duplicate
Please complete the following tasks
Rust Version
rustc 1.57.0 (f1edd0429 2021-11-29)
Clap Version
3.0.6
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- --help
Actual Behaviour
I get a build error:
Expected Behaviour
I think that we should be able to use the string representation of enums some way. Either as
String
or asString.as_str()
or as&String
.Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: