Enum exa::Misfire
[−]
[src]
pub enum Misfire { InvalidOptions(ParseError), BadArgument(&'static Arg, OsString), Help(HelpString), Version(VersionString), Duplicate(Flag, Flag), Conflict(&'static Arg, &'static Arg), Useless(&'static Arg, bool, &'static Arg), Useless2(&'static Arg, &'static Arg, &'static Arg), TreeAllAll, FailedParse(ParseIntError), FailedGlobPattern(String), }
A misfire is a thing that can happen instead of listing files -- a catch-all for anything outside the program’s normal execution.
Variants
InvalidOptions(ParseError)
The getopts crate didn’t like these Arguments.
BadArgument(&'static Arg, OsString)
The user supplied an illegal choice to an Argument.
Help(HelpString)
The user asked for help. This isn’t strictly an error, which is why this enum isn’t named Error!
Version(VersionString)
The user wanted the version number.
Duplicate(Flag, Flag)
An option was given twice or more in strict mode.
Conflict(&'static Arg, &'static Arg)
Two options were given that conflict with one another.
Useless(&'static Arg, bool, &'static Arg)
An option was given that does nothing when another one either is or isn't present.
Useless2(&'static Arg, &'static Arg, &'static Arg)
An option was given that does nothing when either of two other options are not present.
TreeAllAll
A very specific edge case where --tree can’t be used with --all twice.
FailedParse(ParseIntError)
A numeric option was given that failed to be parsed as a number.
FailedGlobPattern(String)
A glob ignore was given that failed to be parsed as a pattern.
Methods
impl Misfire
[src]
impl Misfire
[src]
fn suggestion(&self) -> Option<&'static str>
[src]
Try to second-guess what the user was trying to do, depending on what went wrong.
Trait Implementations
impl PartialEq for Misfire
[src]
fn eq(&self, __arg_0: &Misfire) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Misfire) -> bool
[src]
This method tests for !=
.
impl Debug for Misfire
[src]
impl From<PatternError> for Misfire
[src]
fn from(error: PatternError) -> Misfire
[src]
Performs the conversion.