Struct gumdrop::Error[][src]

pub struct Error { /* fields omitted */ }

Represents an error encountered during argument parsing

Methods

impl Error
[src]

Returns an error for a failed attempt at parsing an option value.

Returns an error for a failed attempt at parsing an option's default value.

Returns an error for an option expecting two or more arguments not receiving the expected number of arguments.

Returns an error for an option receiving an unexpected argument value, e.g. --option=value.

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 [...].

Returns an error for a missing required argument.

Returns an error for a missing command name.

Returns an error for a missing required option.

Returns an error for a missing required command.

Returns an error for a missing required free argument.

Returns an error when a free argument was encountered, but the options type does not support free arguments.

Returns an error for an unrecognized command.

Returns an error for an unrecognized option.

Returns an error for an unrecognized long option, e.g. --option.

Returns an error for an unrecognized short option, e.g. -o.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error