mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +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));
|
|
}
|