Struct argonaut::Parser
[−]
[src]
pub struct Parser<'a> { // some fields omitted }
An argument parser.
Methods
impl<'a> Parser<'a>
[src]
fn new() -> Self
Creates a new parser with the given title.
fn add(&mut self, arg: &Arg<'a>) -> Result<(), String>
Attempts to add an argument to this parser.
fn parse(&self, args: &Vec<&'a str>) -> ParseResult<'a>
Attempts to parse the given arguments with this parser.