Struct clap::Error
[−]
[src]
pub struct Error {
pub message: String,
pub kind: ErrorKind,
pub info: Option<Vec<String>>,
}Command Line Argument Parser Error
Fields
message | Formated error message |
kind | The type of error |
info | Any additional information passed along, such as the argument name that caused the error |
Methods
impl Error
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