1 use clap::ValueEnum; 2 3 #[derive(ValueEnum, Clone, Debug)] 4 enum Opt { 5 Foo(usize), 6 } 7 main()8 fn main() { 9 println!("{:?}", Opt::Foo(42)); 10 } 11