1 /// Command 2 #[derive(argh::FromArgs)] 3 struct Cmd { 4 #[argh(switch)] 5 /// non-ascii 6 привет: bool, 7 #[argh(switch)] 8 /// uppercase 9 XMLHTTPRequest: bool, 10 #[argh(switch, long = "not really")] 11 /// bad attr 12 ok: bool, 13 } 14 main()15 fn main() {} 16