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