Struct clap::Error [−][src]
Expand description
Command Line Argument Parser Error
Fields
message: String
Formatted error message
kind: ErrorKind
The type of error
info: Option<Vec<String>>
Any additional information passed along, such as the argument name that caused the error
Implementations
Should the message be written to stdout
or not
Prints the error message and exits. If Error::use_stderr
evaluates to true
, the message
will be written to stderr
and exits with a status of 1
. Otherwise, stdout
is used
with a status of 0
.
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.