Enum arg::ParseError [−][src]
pub enum ParseError<'a> {
HelpRequested(&'static str),
TooManyArgs,
RequiredArgMissing(&'a str),
MissingValue(&'a str),
InvalidFlagValue(&'a str, &'a str),
InvalidArgValue(&'a str, &'a str),
UnknownFlag(&'a str),
}
Expand description
Parse errors
Variants
User requested help.
Contains slice with Args::HELP
Too many arguments are specified.
Argument is required, but missing
Contains name of argument
Flag is specified, but value is missing.
Contains full flag name.
Flag is specified with invalid value
Contains full flag name and provided value.
Argument is supplied with invalid vlaue
Contains argument name and provided value.
Unknown flag is specified.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.