[][src]Trait arg::Args

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>> { ... } }

Describers command line argument parser

Associated Constants

const HELP: &'static str

Help message for parser.

Loading content...

Required methods

fn from_args<'a, T: IntoIterator<Item = &'a str>>(
    args: T
) -> Result<Self, ParseError<'a>>

Parses arguments from iterator of strings

Loading content...

Provided methods

fn from_text<'a>(text: &'a str) -> Result<Self, ParseError<'a>>

Parses arguments from string, which gets tokenized and passed to from.

Loading content...

Implementors

Loading content...