Update clap to the latest version (#11017)

* Update clap to the latest version

Besides that it also removes some `structopt` leftovers from some docs.

* Fix compile errors

* More fixes
This commit is contained in:
Bastian Köcher
2022-03-12 15:31:37 +01:00
committed by GitHub
parent d9d05969a1
commit 42484508d7
19 changed files with 87 additions and 86 deletions
@@ -19,7 +19,7 @@ mod command;
mod storage;
mod writer;
use sc_cli::{ExecutionStrategy, WasmExecutionMethod};
use sc_cli::{ExecutionStrategy, WasmExecutionMethod, DEFAULT_WASM_EXECUTION_METHOD};
use std::{fmt::Debug, path::PathBuf};
pub use storage::StorageCmd;
@@ -46,11 +46,11 @@ pub struct BenchmarkCmd {
pub steps: u32,
/// Indicates lowest values for each of the component ranges.
#[clap(long = "low", use_delimiter = true)]
#[clap(long = "low", use_value_delimiter = true)]
pub lowest_range_values: Vec<u32>,
/// Indicates highest values for each of the component ranges.
#[clap(long = "high", use_delimiter = true)]
#[clap(long = "high", use_value_delimiter = true)]
pub highest_range_values: Vec<u32>,
/// Select how many repetitions of this benchmark should run from within the wasm.
@@ -130,7 +130,7 @@ pub struct BenchmarkCmd {
value_name = "METHOD",
possible_values = WasmExecutionMethod::variants(),
ignore_case = true,
default_value = "compiled"
default_value = DEFAULT_WASM_EXECUTION_METHOD,
)]
pub wasm_method: WasmExecutionMethod,