mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +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());
|
|
}
|