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

HelpRequested

User requested help.

Contains slice with Args::HELP

Tuple Fields of HelpRequested

0: &'static str
TooManyArgs

Too many arguments are specified.

RequiredArgMissing

Argument is required, but missing

Contains name of argument

Tuple Fields of RequiredArgMissing

0: &'a str
MissingValue

Flag is specified, but value is missing.

Contains full flag name.

Tuple Fields of MissingValue

0: &'a str
InvalidFlagValue

Flag is specified with invalid value

Contains full flag name and provided value.

Tuple Fields of InvalidFlagValue

0: &'a str1: &'a str
InvalidArgValue

Argument is supplied with invalid vlaue

Contains argument name and provided value.

Tuple Fields of InvalidArgValue

0: &'a str1: &'a str
UnknownFlag

Unknown flag is specified.

Tuple Fields of UnknownFlag

0: &'a str

Implementations

Returns whether help is requested

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.