Struct clap::Error [] [src]

pub struct Error {
    pub message: String,
    pub kind: ErrorKind,
    pub info: Option<Vec<String>>,
}

Command Line Argument Parser Error

Fields

Formated error message

The type of error

Any additional information passed along, such as the argument name that caused the error

Methods

impl Error
[src]

[src]

Should the message be written to stdout or not

[src]

Prints the error to stderr and exits with a status of 1

[src]

Create an error with a custom description.

This can be used in combination with Error::exit to exit your program with a custom error message.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl StdError for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.