Struct cmdparser::Parser
[−]
[src]
pub struct Parser { /* fields omitted */ }
Parser structure
Methods
impl Parser
[src]
Parser implementation
fn new() -> Parser
[src]
Constructor
@return Parser
fn strict_prefix(&mut self, prefixes: Vec<String>) -> &Self
[src]
Sets the prefix for the arguments
@param prefixes Vec
fn merge_values(&mut self, merge: bool) -> &Self
[src]
Disables overwriting of arguments and instead merges them
@param merge Vec
fn parse(&self) -> (HashMap<String, Vec<String>>, Vec<String>)
[src]
Parses the given cmd arguments
@return Touple(ArgumentList, Flags)