Struct getopt_rs::Opt [−][src]
pub struct Opt<'a> {
pub long_rule: LongForm,
pub short: char,
pub long: Option<&'a str>,
pub no_short: bool,
}
Expand description
A command line option rule.
At least one option form must be present, short
and long
cannot both be None
.
Fields
long_rule: LongForm
The long-option rule, telling how long options should be parsed.
Default: LongForm::DoubleDash
.
short: char
The short form and identifier for the option.
long: Option<&'a str>
The long form for the option.
Default: None
.
no_short: bool
Disallow the short form.
Default: false
.