Function bpaf::short

source · []
pub fn short(short: char) -> Named
Expand description

A flag/switch/argument that has a short name

You can specify it multiple times, items past the first one represent hidden aliases.

let switch: Parser<bool> =
    short('f')
        .short('F')
        .long("flag")
        .help("a flag that does a thing")
        .switch();