clap/tests/derive_ui/arg_enum_non_unit.rs

11 lines
133 B
Rust
Raw Normal View History

2022-03-30 00:48:34 +00:00
use clap::ArgEnum;
#[derive(ArgEnum, Clone, Debug)]
enum Opt {
Foo(usize),
}
fn main() {
println!("{:?}", Opt::Foo(42));
}