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
Trait Implementations
impl StructuralPartialEq for CliParsed
Auto Trait Implementations
impl RefUnwindSafe for CliParsed
impl Send for CliParsed
impl Sync for CliParsed
impl Unpin for CliParsed
impl UnwindSafe for CliParsed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more