Enum getopts::Fail [] [src]

pub enum Fail {
    ArgumentMissing(String),
    UnrecognizedOption(String),
    OptionMissing(String),
    OptionDuplicated(String),
    UnexpectedArgument(String),
}

The type returned when the command line does not conform to the expected format. Use the Debug implementation to output detailed information.

Variants

The option requires an argument but none was passed.

The passed option is not declared among the possible options.

A required option is not present.

A single occurrence option is being used multiple times.

There's an argument being passed to a non-argument option.

Trait Implementations

impl Clone for Fail
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Fail
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Fail
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Fail
[src]

impl Error for Fail
[src]

A short description of the error. Read more

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

impl Display for Fail
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Fail

impl Sync for Fail