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

Command line argument parser error type

Methods

impl ClapError

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

Derived Implementations

impl Debug for ClapError

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