Trait typeparam::Command [] [src]

pub trait Command where
    Self: Sized
{ type Error; fn command() -> App<'static, 'static>;
fn new(mch: &ArgMatches) -> Result<Self, Self::Error>; fn parse<I: IntoIterator<Item = T>, T: Into<OsString> + Clone>(
        itr: I
    ) -> Result<Self, Error<Self::Error>> { ... }
fn parse_args() -> Result<Self, Error<Self::Error>> { ... }
fn parse_any<I: IntoIterator<Item = T>, T: Into<OsString> + Clone, E: From<Self::Error> + From<Error>>(
        itr: I
    ) -> Result<Self, E> { ... }
fn parse_any_args<E: From<Self::Error> + From<Error>>() -> Result<Self, E> { ... }
fn parse_or_exit<I: IntoIterator<Item = T>, T: Into<OsString> + Clone>(
        itr: I
    ) -> Self
    where
        Self::Error: Display
, { ... }
fn parse_args_or_exit() -> Self
    where
        Self::Error: Display
, { ... } }

Commands are main result of typeparam! macro.

Associated Types

Error that may be returned by the user part of the process.

Required Methods

Creates an App based on specified command

Creates structure based on matched arguments.

Provided Methods

Starts the automated parsing process with passed iterator.

NOTE --help and --version are returned as errors.

NOTE Note that first element of iteration is considered name of binary.

Starts the automated parsing process with commandline arguments.

NOTE --help and --version are returned as errors.

NOTE Note that command name is considered just a binary name.

Starts the automated parsing process with passed iterator.

NOTE --help and --version are returned as errors.

NOTE Note that first element of iteration is considered name of binary.

Starts the automated parsing process with commandline arguments.

NOTE --help and --version are returned as errors.

NOTE Note that command name is considered just a binary name.

Starts the automated parsing process with passed iterator. If parsing fails an error is printed and process exits.

NOTE Note that command name is considered just a binary name.

Starts the automated parsing process with passed iterator. If parsing fails an error is printed and process exits.

NOTE Note that command name is considered just a binary name.

Implementors