use clap::Parser; #[test] fn raw_idents() { #[derive(Parser, Debug, PartialEq)] struct Opt { #[clap(short, long, multiple_occurrences(true))] r#type: Vec, } assert_eq!( Opt { r#type: vec!["long".into(), "short".into()] }, Opt::parse_from(&["test", "--type", "long", "-t", "short"]) ); }