Enum rustop::Error [] [src]

pub enum Error {
    DuplicateLong(String),
    DuplicateShort(char),
    MissingLongAndShort,
    Unknown(OptName),
    InvalidLong(String),
    InvalidArgument(OptNameArgError),
    AmbiguousPrefix(StringVec<String>),
    Multiple(OptName),
    MissingOpt(OptName),
    MissingParam(OptName),
    Help(String),
}

An error message when parsing command line arguments.

Variants

A duplicated long option has been specified.

A duplicated short option has been specified.

Missing short and long option.

Unknown option.

An invalid long option name.

An error when parsing an argument.

A command-line prefix is ambigious.

A regular option has been specified multiple times.

A required option has not been specified.

A required parameter has not been specified.

The help message should be shown.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more