pub struct CliParsed {
    pub arguments: HashSet<String>,
    pub argument_values: HashMap<String, Vec<String>>,
}
Expand description

Holds the command line parse result

Fields

arguments: HashSet<String>

A collection of all arguments found (list of names not keys). Arguments that were not found by defaulted to a given value will not be listed here.

argument_values: HashMap<String, Vec<String>>

A map of all values for arguments found. The map will exclude arguments that do not accept value but include arguments not provided on the command line but were defaulted to a given value. The map keys are the argument names (not keys) and the value is the list of all values found for all occurrences.

Implementations

Returns new instance

returns the first value (if exists)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.