Enum argonaut::ParseError
[−]
[src]
pub enum ParseError<'a, 'b> { MissingPositional(&'a str), MissingParameter(&'a str), MissingTrail, UnexpectedPositional(&'b str), UnexpectedShortArgument(char, &'b str), UnexpectedLongArgument(&'b str), GroupedNonSwitch(char, &'b str), }
An error found when parsing.
Variants
MissingPositional(&'a str)
The positional argument with this name was not found.
MissingParameter(&'a str)
The required parameter of this option was not found.
MissingTrail
No trail arguments were found, but they were expected.
UnexpectedPositional(&'b str)
No more positionals was expected, but this argument was found.
UnexpectedShortArgument(char, &'b str)
This short (-h
) flag was not defined.
UnexpectedLongArgument(&'b str)
This long (--help
) flag was not defined.
GroupedNonSwitch(char, &'b str)
A short flag of an option taking a parameter was grouped with others.
eg. -x ARG
was instead grouped as -abcdx ARG
.
Trait Implementations
impl<'a, 'b> Debug for ParseError<'a, 'b>
[src]
impl<'a, 'b> PartialEq for ParseError<'a, 'b>
[src]
fn eq(&self, __arg_0: &ParseError<'a, 'b>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseError<'a, 'b>) -> bool
This method tests for !=
.