mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
11 lines
171 B
Rust
11 lines
171 B
Rust
use clap::Parser;
|
|
|
|
#[derive(Parser, Clone, Debug)]
|
|
struct Opt {
|
|
#[clap(parse(not_a_valid_parser))]
|
|
value: i8,
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Opt::parse());
|
|
}
|