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

    fn from_args<A>(into_args: A) -> Self
        A: IntoIterator<Item = String>
, { ... } fn from_env_args() -> Self { ... } fn print_usage_and_exit(args: &[String]) -> ! { ... } fn subcommand_usage(_command: &str) -> Option<Usage> { ... } }
Expand description

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

Required Methods

Name of this program as a string

Description of this program

Version of this program

Authors of this program

Provided Methods

Parse command-line arguments from a string iterator

Parse command-line arguments from the environment

Print usage information and exit

Get usage information for a particular subcommand (if available)