mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 00:57:15 +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));
|
|
}
|