clap/tests/derive_ui/value_enum_non_unit.rs
Ed Page 9e38353442 fix(derive): Clarify ArgEnum as ValueEnum
We aren't enumerating arguments but values for an argument, so the name
should reflect that.

This will be important as part of #1807 when we have more specific
attribute names.
2022-06-08 11:14:09 -05:00

10 lines
137 B
Rust

use clap::ValueEnum;
#[derive(ValueEnum, Clone, Debug)]
enum Opt {
Foo(usize),
}
fn main() {
println!("{:?}", Opt::Foo(42));
}