pub trait Command: Debug + FromArgMatches + Runnable {
    fn name() -> &'static str;
    fn description() -> &'static str;
    fn authors() -> &'static str;

    fn parse_args<T, I>(into_args: I) -> Self
        Self: Parser,
        I: IntoIterator<Item = T>,
        T: Into<OsString> + Clone
, { ... } fn parse_env_args() -> Self
        Self: Parser
, { ... } }
Expand description

Subcommand of an application: derives or otherwise implements the Options trait, but also has a run() method which can be used to invoke the given (sub)command.

Required Methods§

Name of this program as a string

Description of this program

Authors of this program

Provided Methods§

Parse command-line arguments from an iterator

Parse command-line arguments from the environment