pub enum Item<'a> {
NonOption(usize, &'a str),
EarlyTerminator(usize),
Long(usize, &'a str),
LongWithData {
i: usize,
n: &'a str,
d: &'a str,
l: DataLocation,
},
Short(usize, char),
ShortWithData {
i: usize,
c: char,
d: &'a str,
l: DataLocation,
},
}
Expand description
Non-problematic items. See ItemClass
documentation for details.
Variants§
NonOption(usize, &'a str)
Argument not considered an option.
EarlyTerminator(usize)
Early terminator (--
) encountered.
Long(usize, &'a str)
Long option match.
LongWithData
Long option match, with expected data argument.
Short(usize, char)
Short option match.
ShortWithData
Short option match, with expected data argument.