Trait abscissa_core::command::Command [−][src]
pub trait Command: Debug + Clap + Runnable {
fn name() -> &'static str;
fn description() -> &'static str;
fn authors() -> &'static str;
fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self { ... }
fn from_env_args() -> Self { ... }
}
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
fn description() -> &'static str
fn description() -> &'static str
Description of this program
Authors of this program
Provided methods
fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self
fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self
Parse command-line arguments from a string iterator
fn from_env_args() -> Self
fn from_env_args() -> Self
Parse command-line arguments from the environment