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