Trait arg::Args [−][src]
pub trait Args: Sized {
const HELP: &'static str;
fn from_args<'a, T: IntoIterator<Item = &'a str>>(
args: T
) -> Result<Self, ParseError<'a>>;
fn from_text<'a>(text: &'a str) -> Result<Self, ParseError<'a>> { ... }
}
Expand description
Describers command line argument parser
Associated Constants
Required methods
fn from_args<'a, T: IntoIterator<Item = &'a str>>(
args: T
) -> Result<Self, ParseError<'a>>
fn from_args<'a, T: IntoIterator<Item = &'a str>>(
args: T
) -> Result<Self, ParseError<'a>>
Parses arguments from iterator of strings
Provided methods
fn from_text<'a>(text: &'a str) -> Result<Self, ParseError<'a>>
fn from_text<'a>(text: &'a str) -> Result<Self, ParseError<'a>>
Parses arguments from string, which gets tokenized and passed to from.