pub enum LightNodeCmd {
Help(Help<Self>),
Initialize(InitCmd),
Start(StartCmd),
Version(VersionCmd),
}
Expand description
LightNode Subcommands
Variants§
Help(Help<Self>)
The help
subcommand
Initialize(InitCmd)
intialize
the light node
Start(StartCmd)
start
the light node
Version(VersionCmd)
version
of the light node
Trait Implementations§
Source§impl Command for LightNodeCmd
impl Command for LightNodeCmd
Source§fn description() -> &'static str
fn description() -> &'static str
Description of this program
Authors of this program
Source§fn subcommand_usage(command: &str) -> Option<Usage>
fn subcommand_usage(command: &str) -> Option<Usage>
get usage information for the named subcommand
Source§fn from_args<A>(into_args: A) -> Selfwhere
A: IntoIterator<Item = String>,
fn from_args<A>(into_args: A) -> Selfwhere
A: IntoIterator<Item = String>,
Parse command-line arguments from a string iterator
Source§fn from_env_args() -> Self
fn from_env_args() -> Self
Parse command-line arguments from the environment
Source§fn print_usage_and_exit(args: &[String]) -> !
fn print_usage_and_exit(args: &[String]) -> !
Print usage information and exit
Source§impl Configurable<LightNodeConfig> for LightNodeCmd
This trait allows you to define how application configuration is loaded.
impl Configurable<LightNodeConfig> for LightNodeCmd
This trait allows you to define how application configuration is loaded.
Source§fn config_path(&self) -> Option<PathBuf>
fn config_path(&self) -> Option<PathBuf>
Location of the configuration file
Source§fn process_config(
&self,
config: LightNodeConfig,
) -> Result<LightNodeConfig, FrameworkError>
fn process_config( &self, config: LightNodeConfig, ) -> Result<LightNodeConfig, FrameworkError>
Apply changes to the config after it’s been loaded, e.g. overriding values in a config file using command-line options.
This can be safely deleted if you don’t want to override config settings from command-line options.
Source§impl Debug for LightNodeCmd
impl Debug for LightNodeCmd
Source§impl Options for LightNodeCmd
impl Options for LightNodeCmd
Source§fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
Parses arguments until the given parser is exhausted or until
an error is encountered.
Source§fn command_name(&self) -> Option<&'static str>
fn command_name(&self) -> Option<&'static str>
Returns the name of a parsed command, if present. Read more
Source§fn help_requested(&self) -> bool
fn help_requested(&self) -> bool
Returns whether the user supplied a “help” option to request
usage information about the program or any contained subcommands. Read more
Source§fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>,
) -> Result<Self, Error>
fn parse_command<__S: AsRef<str>>( name: &str, _parser: &mut Parser<'_, __S>, ) -> Result<Self, Error>
Parses options for the named command.
Source§fn usage() -> &'static str
fn usage() -> &'static str
Returns a string showing usage and help for each supported option. Read more
Source§fn command_list() -> Option<&'static str>
fn command_list() -> Option<&'static str>
Returns a string listing available commands and help text. Read more
Source§fn command_usage(name: &str) -> Option<&'static str>
fn command_usage(name: &str) -> Option<&'static str>
Returns a usage string for the named command. Read more
Source§fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
Parses arguments received from the command line. Read more
Source§fn parse_args_or_exit(style: ParsingStyle) -> Self
fn parse_args_or_exit(style: ParsingStyle) -> Self
Parses arguments from the environment. Read more
Source§fn parse_args_default_or_exit() -> Self
fn parse_args_default_or_exit() -> Self
Parses arguments from the environment, using the default parsing style. Read more
Auto Trait Implementations§
impl Freeze for LightNodeCmd
impl RefUnwindSafe for LightNodeCmd
impl Send for LightNodeCmd
impl Sync for LightNodeCmd
impl Unpin for LightNodeCmd
impl UnwindSafe for LightNodeCmd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more