Struct clap::ClapError [] [src]

pub struct ClapError {
    pub error: String,
    pub error_type: ClapErrorType,
}

Command line argument parser error

Fields

error

Formated error message

error_type

The type of error

Methods

impl ClapError

fn use_stderr(&self) -> bool

Should the message be written to stdout or not

fn exit(&self) -> !

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

Trait Implementations

impl Error for ClapError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for ClapError

fn fmt(&self, f: &mut Formatter) -> Result

impl From<Error> for ClapError

fn from(e: Error) -> Self

impl From<Error> for ClapError

fn from(e: Error) -> Self

Derived Implementations

impl Debug for ClapError

fn fmt(&self, __arg_0: &mut Formatter) -> Result