Struct clap::Error [−][src]
Command Line Argument Parser Error
Fields
message: StringFormatted error message
kind: ErrorKindThe type of error
info: Option<Vec<String>>Any additional information passed along, such as the argument name that caused the error
Implementations
impl Error[src]
impl Error[src]pub fn use_stderr(&self) -> bool[src]
Should the message be written to stdout or not
pub fn exit(&self) -> ![src]
Prints the error to stderr and exits with a status of 1
pub fn with_description(description: &str, kind: ErrorKind) -> Self[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.