mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 00:17:56 +00:00
Normalization of CLI options format (CamelCase => kebab-case) (#11194)
* Convert cli options from 'CamelCase' to 'kebab-case' * Remove not required 'as_str' for 'ExecutionStrategy' option
This commit is contained in:
@@ -118,7 +118,7 @@ impl BlockNumberOrHash {
|
||||
#[derive(Debug, Clone, Args)]
|
||||
pub struct CryptoSchemeFlag {
|
||||
/// cryptography scheme
|
||||
#[clap(long, value_name = "SCHEME", arg_enum, ignore_case = true, default_value = "Sr25519")]
|
||||
#[clap(long, value_name = "SCHEME", arg_enum, ignore_case = true, default_value = "sr25519")]
|
||||
pub scheme: CryptoScheme,
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ pub struct CryptoSchemeFlag {
|
||||
#[derive(Debug, Clone, Args)]
|
||||
pub struct OutputTypeFlag {
|
||||
/// output format
|
||||
#[clap(long, value_name = "FORMAT", arg_enum, ignore_case = true, default_value = "Text")]
|
||||
#[clap(long, value_name = "FORMAT", arg_enum, ignore_case = true, default_value = "text")]
|
||||
pub output_type: OutputType,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user