Struct app::App
[−]
[src]
pub struct App<'app> { /* fields omitted */ }
application struct
Methods
impl<'app> App<'app>
[src]
fn new<'s: 'app>(name: &'s str) -> Self
fn version<'s: 'app>(self, version: &'s str) -> Self
fn desc<'s: 'app>(self, desc: &'s str) -> Self
fn addr<'s: 'app>(self, name: &'s str, url: &'s str) -> Self
fn opt(self, opt: Opt<'app>) -> Self
fn args<'s: 'app, S>(self, name: S, value: &'s mut Vec<String>) -> Self where S: Into<String>
fn cmd(self, cmd: Cmd<'app>) -> Self
fn current_cmd<'s: 'app>(self, value: &'s mut String) -> Self
impl<'app> App<'app>
[src]
fn parse(&mut self)
parse_string(std::env::args()[1..])
and exit(1)
if parse fails.