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

The getopts crate didn’t like these Arguments.

The user supplied an illegal choice to an Argument.

The user asked for help. This isn’t strictly an error, which is why this enum isn’t named Error!

The user wanted the version number.

An option was given twice or more in strict mode.

Two options were given that conflict with one another.

An option was given that does nothing when another one either is or isn't present.

An option was given that does nothing when either of two other options are not present.

A very specific edge case where --tree can’t be used with --all twice.

A numeric option was given that failed to be parsed as a number.

A glob ignore was given that failed to be parsed as a pattern.

Methods

impl Misfire
[src]

[src]

The OS return code this misfire should signify.

impl Misfire
[src]

[src]

Try to second-guess what the user was trying to do, depending on what went wrong.

Trait Implementations

impl PartialEq for Misfire
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Misfire
[src]

[src]

Formats the value using the given formatter.

impl From<PatternError> for Misfire
[src]

[src]

Performs the conversion.

impl Display for Misfire
[src]

[src]

Formats the value using the given formatter. Read more