clap/tests/derive_ui/default_values_t_invalid.rs

14 lines
213 B
Rust
Raw Normal View History

use clap::Parser;
#[derive(Parser, Debug)]
#[command(name = "basic")]
struct Opt {
#[arg(default_values_t = [1, 2, 3])]
value: u32,
}
fn main() {
let opt = Opt::parse();
println!("{:?}", opt);
}