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:
Davide Galassi
2022-04-11 09:45:45 +02:00
committed by GitHub
parent 9090f0d2a2
commit 641a43a05d
8 changed files with 32 additions and 38 deletions
+5 -5
View File
@@ -71,16 +71,16 @@ pub struct RunCmd {
/// RPC methods to expose.
///
/// - `Unsafe`: Exposes every RPC method.
/// - `Safe`: Exposes only a safe subset of RPC methods, denying unsafe RPC methods.
/// - `Auto`: Acts as `Safe` if RPC is served externally, e.g. when `--{rpc,ws}-external` is
/// passed, otherwise acts as `Unsafe`.
/// - `unsafe`: Exposes every RPC method.
/// - `safe`: Exposes only a safe subset of RPC methods, denying unsafe RPC methods.
/// - `auto`: Acts as `safe` if RPC is served externally, e.g. when `--{rpc,ws}-external` is
/// passed, otherwise acts as `unsafe`.
#[clap(
long,
value_name = "METHOD SET",
arg_enum,
ignore_case = true,
default_value = "Auto",
default_value = "auto",
verbatim_doc_comment
)]
pub rpc_methods: RpcMethods,