mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
12 lines
171 B
Rust
12 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());
|
||
|
}
|