Function bpaf::long

source · []
pub fn long(long: &'static str) -> Named
Expand description

A flag/switch/argument that has a long name

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

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