[][src]Enum arg::ParseError

pub enum ParseError<'a> {
    HelpRequested,
    TooManyArgs,
    RequiredArgMissing(&'a str),
    MissingValue(&'a str),
    InvalidFlagValue(&'a str, &'a str),
    InvalidArgValue(&'a str, &'a str),
    UnknownFlag(&'a str),
}

Parse errors

Variants

HelpRequested

User requested help.

TooManyArgs

Too many arguments are specified.

RequiredArgMissing(&'a str)

Argument is required, but missing

Contains name of argument

MissingValue(&'a str)

Flag is specified, but value is missing.

Contains full flag name.

InvalidFlagValue(&'a str, &'a str)

Flag is specified with invalid value

Contains full flag name and provided value.

InvalidArgValue(&'a str, &'a str)

Argument is supplied with invalid vlaue

Contains argument name and provided value.

UnknownFlag(&'a str)

Unknown flag is specified.

Methods

impl<'a> ParseError<'a>[src]

pub fn is_help(&self) -> bool[src]

Returns whether help is requested

Trait Implementations

impl<'a> Display for ParseError<'a>[src]

impl<'a> Debug for ParseError<'a>[src]

impl<'a> PartialEq<ParseError<'a>> for ParseError<'a>[src]

impl<'a> Eq for ParseError<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for ParseError<'a>

impl<'a> Send for ParseError<'a>

impl<'a> Sync for ParseError<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]