[−][src]Trait abscissa_core::command::Command
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
fn name() -> &'static str
Name of this program as a string
fn description() -> &'static str
Description of this program
fn version() -> &'static str
Version of this program
fn authors() -> &'static str
Authors of this program
Provided methods
fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self
Parse command-line arguments from a string iterator
fn from_env_args() -> Self
Parse command-line arguments from the environment
fn print_usage_and_exit(args: &[String]) -> !
Print usage information and exit
fn subcommand_usage(_command: &str) -> Option<Usage>
Get usage information for a particular subcommand (if available)
Implementors
impl<C> Command for Help<C> where
C: Command,
[src]
C: Command,
fn name() -> &'static str
[src]
fn description() -> &'static str
[src]
fn version() -> &'static str
[src]
fn authors() -> &'static str
[src]
impl<Cmd> Command for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
fn name() -> &'static str
[src]
Name of this program as a string
fn description() -> &'static str
[src]
Description of this program
fn version() -> &'static str
[src]
Version of this program
fn authors() -> &'static str
[src]
Authors of this program
fn subcommand_usage(command: &str) -> Option<Usage>
[src]
Get usage information for a particular subcommand (if available)