pub enum ItemW<'a> {
UnknownLong(usize, &'a str),
UnknownShort(usize, char),
LongWithNoName(usize),
LongWithUnexpectedData {
i: usize,
n: &'a str,
d: &'a str,
},
}
Expand description
Warn-level items. See ItemClass
documentation for details.
Variants§
UnknownLong(usize, &'a str)
Looked like a long option, but no match [WARN]
UnknownShort(usize, char)
Unknown short option char
[WARN]
LongWithNoName(usize)
Looked like a long option, but a name was not actually specified. This only occurs for
arguments starting with --=
(in standard mode, -=
in alternate mode). Because the first
=
in a long option argument is interpreted as indication that any subsequent characters
are a data sub-argument, an =
immediately following the long option prefix thus gives an
empty option name. The data (if any) is ignored. [WARN]
LongWithUnexpectedData
Long option match, but came with unexpected data. For example --foo=bar
when --foo
takes
no data. [WARN]