clap/tests/derive_ui/arg_enum_on_struct.rs

9 lines
127 B
Rust
Raw Normal View History

use clap::ArgEnum;
2021-09-29 17:31:05 +00:00
#[derive(ArgEnum, Clone, Debug)]
struct Opt {}
fn main() {
2021-09-29 17:31:05 +00:00
println!("{:?}", Opt::value_variants());
}