Enum argonaut::ParseError [] [src]

pub enum ParseError<'a, 'b> {
    MissingPositional(&'a str),
    MissingParameter(&'a str),
    MissingTrail,
    UnexpectedPositional(&'b str),
    UnexpectedShortArgument(char, &'b str),
    UnexpectedLongArgument(&'b str),
    GroupedNonSwitch(char, &'b str),
}

An error found when parsing.

Variants

The positional argument with this name was not found.

The required parameter of this option was not found.

No trail arguments were found, but they were expected.

No more positionals was expected, but this argument was found.

This short (-h) flag was not defined.

This long (--help) flag was not defined.

A short flag of an option taking a parameter was grouped with others. eg. -x ARG was instead grouped as -abcdx ARG.

Trait Implementations

impl<'a, 'b> Debug for ParseError<'a, 'b>
[src]

Formats the value using the given formatter.

impl<'a, 'b> PartialEq for ParseError<'a, 'b>
[src]

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

This method tests for !=.