Struct argonaut::ParsedArgs [] [src]

pub struct ParsedArgs<'a> {
    // some fields omitted
}

The parsed arguments of a succesful parsing.

Methods

impl<'a> ParsedArgs<'a>
[src]

fn new(positional: HashMap<&'a str, &'a str>, trail: Option<Vec<&'a str>>, singles: HashMap<OptName<'a>, Option<&'a str>>, multiples: HashMap<OptName<'a>, Option<Vec<&'a str>>>, switches: HashMap<OptName<'a>, bool>, aliases: HashMap<FlagName<'a>, OptName<'a>>) -> ParsedArgs<'a>

Creates a new set of parsed arguments.

fn positional(&'a self, name: &'a str) -> Result<&'a strString>

Returns the positional argument with the given name if it exists.

fn named(&'a self, name: &'a str) -> ParsedArgsAccess<'a>

Accesses a flag with the given long name in the parsed arguments.

fn trail(&'a self) -> Option<Vec<&'a str>>

Returns the trail for the parsed arguments if any was specified.

Trait Implementations

impl<'a> Debug for ParsedArgs<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.