Struct gumdrop::Error [] [src]

pub struct Error { /* fields omitted */ }

Represents an error encountered during argument parsing

Methods

impl Error
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns an error for a missing required argument.

[src]

Returns an error for a missing command name.

[src]

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

[src]

Returns an error for an unrecognized command.

[src]

Returns an error for an unrecognized option.

[src]

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

[src]

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

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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