clap/tests/derive_ui/arg_enum_non_unit.rs
2022-03-30 03:49:14 +02:00

10 lines
133 B
Rust

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