Struct gumdrop::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Represents an error encountered during argument parsing
Methods
impl Error
[src]
fn failed_parse(opt: Opt, err: String) -> Error
Returns an error for a failed attempt at parsing an option value.
fn unexpected_argument(opt: Opt) -> Error
Returns an error for an option receiving an unexpected argument value,
e.g. --option=value
.
fn missing_argument(opt: Opt) -> Error
Returns an error for a missing required argument.
fn missing_command() -> Error
Returns an error for a missing command name.
fn unexpected_free(arg: &str) -> Error
Returns an error when a free argument was encountered, but the options type does not support free arguments.
fn unrecognized_command(name: &str) -> Error
Returns an error for an unrecognized command.
fn unrecognized_option(opt: Opt) -> Error
Returns an error for an unrecognized option.
fn unrecognized_long(opt: &str) -> Error
Returns an error for an unrecognized long option, e.g. --option
.
fn unrecognized_short(opt: char) -> Error
Returns an error for an unrecognized short option, e.g. -o
.