Enum clargs::ParsingError[][src]

pub enum ParsingError {
    UnrecognizedOption(String),
    AmbiguousOption(StringVec<String>),
    AssignmentToFlag(String),
    AssignmentToFlagAlias(StringString),
    ParameterDuplication(String),
    ParameterDuplicationAlias(StringString),
    MissingArgument(String),
    MissingArgumentAlias(StringString),
    UnrecognizedSubcommand(String),
    AmbiguousSubcommand(StringVec<String>),
    MissingRequiredSubcommand,
    MissingRequiredParameters(Vec<String>),
}

Returned when an error occurs during the parsing of an argument list.

Variants

Indicates that an option was specified which the program does not recognize.

The associated string is the name of the aforementioned option.

Indicates that a specified option could mean multiple valid options.

The associated string is the name of the aformentioned option. The associated vector of strings contains all the possible valid options.

Indicates that a value was assigned to an option which does not take a value.

The associated string is the name of the aforementioned option.

Indicates that a value was assigned to an option which does not take a value.

The first associated string is the name of the aforementioned option. The second associated string is the name of the alias which was used to specify the option.

Indicates that a value was assigned to the same option more than once.

The associated string is the name of the aforementioned option.

Indicates that a value was assigned to the same option more than once.

The first associated string is the name of the aforementioned option. The second associated string is the name of the alias which was used to specify the option.

Indicates that an option was specified which takes a value but didn't get one.

The associated string is the name of the aforementioned option.

Indicates that an option was specified which takes a value but didn't get one.

The first associated string is the name of the aforementioned option. The second associated string is the name of the alias which was used to specify the option.

Indicates that a subcommand was specified which the program does not recognize.

The associated string is the name of the aforementioned subcommand.

Indicates that a specified subcommand could mean multiple valid subcommands.

The associated string is the name of the aformentioned subcommand. The associated vector of strings contains all the possible valid subcommands.

Indicates that a required subcommand is missing from the argument list.

Indicates that one or more required options are missing from the argument list.

The associated vector of strings contains all the missing required options.

Trait Implementations

impl PartialEq for ParsingError
[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 ParsingError
[src]

impl Display for ParsingError
[src]

Formats the value using the given formatter. Read more

impl Debug for ParsingError
[src]

Formats the value using the given formatter. Read more

impl Error for ParsingError
[src]

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

This method is soft-deprecated. Read more

Auto Trait Implementations