chore: fix typo in chainspec (#10805)

This commit is contained in:
Oliver
2024-09-10 13:18:42 +02:00
committed by GitHub
parent 0213e8841f
commit 5a5511743e
7 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ pub struct Cli<C: ChainSpecParser = DefaultChainSpecParser, Ext: clap::Args + fm
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = C::help_messge(),
long_help = C::help_message(),
default_value = C::SUPPORTED_CHAINS[0],
value_parser = C::parser(),
global = true,

View File

@ -57,7 +57,7 @@ pub trait ChainSpecParser: Clone + Send + Sync + 'static {
}
/// Produces a help message for the chain spec argument.
fn help_messge() -> String {
fn help_message() -> String {
format!("The chain this node is running.\nPossible values are either a built-in chain or the path to a chain specification file.\n\nBuilt-in chains:\n {}", Self::SUPPORTED_CHAINS.join(", "))
}
}

View File

@ -39,7 +39,7 @@ pub struct EnvironmentArgs<C: ChainSpecParser> {
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = C::help_messge(),
long_help = C::help_message(),
default_value = C::SUPPORTED_CHAINS[0],
value_parser = C::parser()
)]

View File

@ -14,7 +14,7 @@ pub struct DumpGenesisCommand<C: ChainSpecParser> {
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = C::help_messge(),
long_help = C::help_message(),
default_value = C::SUPPORTED_CHAINS[0],
value_parser = C::parser()
)]

View File

@ -34,7 +34,7 @@ pub struct NodeCommand<
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = C::help_messge(),
long_help = C::help_message(),
default_value = C::SUPPORTED_CHAINS[0],
default_value_if("dev", "true", "dev"),
value_parser = C::parser(),

View File

@ -31,7 +31,7 @@ pub struct Command<C: ChainSpecParser> {
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = C::help_messge(),
long_help = C::help_message(),
default_value = C::SUPPORTED_CHAINS[0],
value_parser = C::parser()
)]

View File

@ -69,7 +69,7 @@ pub struct Cli<
#[arg(
long,
value_name = "CHAIN_OR_PATH",
long_help = Spec::help_messge(),
long_help = Spec::help_message(),
default_value = Spec::SUPPORTED_CHAINS[0],
value_parser = Spec::parser(),
global = true,