Type Definition abscissa::options::Error [−][src]
type Error = Error<ErrorKind>;
Errors encountered during argument parsing
Methods
impl Error
[src]
impl Error
pub fn failed_parse(opt: Opt, err: String) -> Error
[src]
pub fn failed_parse(opt: Opt, err: String) -> Error
Returns an error for a failed attempt at parsing an option value.
pub fn failed_parse_default(
option: &'static str,
value: &'static str,
err: String
) -> Error
[src]
pub fn failed_parse_default(
option: &'static str,
value: &'static str,
err: String
) -> Error
Returns an error for a failed attempt at parsing an option's default value.
pub fn insufficient_arguments(opt: Opt, expected: usize, found: usize) -> Error
[src]
pub fn insufficient_arguments(opt: Opt, expected: usize, found: usize) -> Error
Returns an error for an option expecting two or more arguments not receiving the expected number of arguments.
pub fn unexpected_argument(opt: Opt) -> Error
[src]
pub fn unexpected_argument(opt: Opt) -> Error
Returns an error for an option receiving an unexpected argument value,
e.g. --option=value
.
pub fn unexpected_single_argument(opt: Opt, n: usize) -> Error
[src]
pub fn unexpected_single_argument(opt: Opt, n: usize) -> Error
Returns an error for an option expecting two or more argument values
receiving only one in the long form, e.g. --option=value
.
These options must be passed as, e.g. --option value second-value [...]
.
pub fn missing_argument(opt: Opt) -> Error
[src]
pub fn missing_argument(opt: Opt) -> Error
Returns an error for a missing required argument.
pub fn missing_command() -> Error
[src]
pub fn missing_command() -> Error
Returns an error for a missing command name.
pub fn missing_required(opt: &str) -> Error
[src]
pub fn missing_required(opt: &str) -> Error
Returns an error for a missing required option.
pub fn missing_required_command() -> Error
[src]
pub fn missing_required_command() -> Error
Returns an error for a missing required command.
pub fn missing_required_free() -> Error
[src]
pub fn missing_required_free() -> Error
Returns an error for a missing required free argument.
pub fn unexpected_free(arg: &str) -> Error
[src]
pub fn unexpected_free(arg: &str) -> Error
Returns an error when a free argument was encountered, but the options type does not support free arguments.
pub fn unrecognized_command(name: &str) -> Error
[src]
pub fn unrecognized_command(name: &str) -> Error
Returns an error for an unrecognized command.
pub fn unrecognized_option(opt: Opt) -> Error
[src]
pub fn unrecognized_option(opt: Opt) -> Error
Returns an error for an unrecognized option.
pub fn unrecognized_long(opt: &str) -> Error
[src]
pub fn unrecognized_long(opt: &str) -> Error
Returns an error for an unrecognized long option, e.g. --option
.
pub fn unrecognized_short(opt: char) -> Error
[src]
pub fn unrecognized_short(opt: char) -> Error
Returns an error for an unrecognized short option, e.g. -o
.