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