clap/tests/derive_ui/unsupported_parser.rs

12 lines
171 B
Rust
Raw Normal View History

use clap::Parser;
#[derive(Parser, Clone, Debug)]
struct Opt {
#[clap(parse(not_a_valid_parser))]
value: i8,
}
fn main() {
println!("{:?}", Opt::parse());
}