mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
10 lines
133 B
Rust
10 lines
133 B
Rust
use clap::ArgEnum;
|
|
|
|
#[derive(ArgEnum, Clone, Debug)]
|
|
enum Opt {
|
|
Foo(usize),
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Opt::Foo(42));
|
|
}
|