Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5c05eed
Bump clap to 3.2.22
skunert Sep 23, 2022
722c344
Replace `from_os_str` with `value_parser`
skunert Sep 23, 2022
4c9000a
Replace `from_str` and `try_from_str` with `value_parser`
skunert Sep 23, 2022
a2074da
Move possible_values to the new format
skunert Sep 27, 2022
00fd209
Merge branch 'master' into skunert/clap-3222
skunert Sep 28, 2022
e688996
Remove unwanted print
skunert Sep 28, 2022
f6fa5bc
Add missing match branch
skunert Sep 29, 2022
0cd4921
Update clap to 4.0.9 and make it compile
skunert Oct 5, 2022
ba302c4
Replace deprecated `clap` macro with `command` and `value`
skunert Oct 5, 2022
7342dfd
Move remaining `clap` attributes to `arg`
skunert Oct 5, 2022
d212391
Remove no-op value_parsers
skunert Oct 5, 2022
a1a27d1
Merge branch 'master' into skunert/clap-3222
skunert Oct 5, 2022
1627561
Merge branch 'master' into skunert/clap-3222
skunert Oct 6, 2022
a6181b6
Adjust value_parser for state_version
skunert Oct 7, 2022
5c929dd
Remove "deprecated" feature flag and bump to 4.0.11
skunert Oct 9, 2022
a91d5aa
Merge branch 'master' into skunert/clap-3222
skunert Oct 9, 2022
a84300b
Improve range
skunert Oct 10, 2022
cb3fe5d
Apply suggestions
skunert Oct 10, 2022
a6491a2
Trigger CI
skunert Oct 10, 2022
35ec929
Fix unused error warning
skunert Oct 11, 2022
aa1299f
Merge remote-tracking branch 'origin/master' into skunert/clap-3222
skunert Oct 11, 2022
9381446
Fix doc errors
skunert Oct 11, 2022
2b80749
Fix ArgGroup naming conflict
skunert Oct 11, 2022
6661fa8
Merge branch 'master' into skunert/clap-3222
skunert Oct 17, 2022
fed8da7
Change default_value to default_value_t
skunert Oct 17, 2022
4f614e7
Use 1.. instead of 0..
skunert Oct 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into skunert/clap-3222
  • Loading branch information
skunert committed Oct 5, 2022
commit a1a27d1bc4e345fe1093e8dc19d8a59e6cedc4cf
12 changes: 0 additions & 12 deletions client/cli/src/params/import_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ pub struct ImportParams {
#[clap(flatten)]
pub database_params: DatabaseParams,

/// THIS IS A DEPRECATED CLI-ARGUMENT.
///
/// It has been preserved in order to not break the compatibility with the existing scripts.
/// Enabling this option will lead to a runtime warning.
/// In future this option will be removed completely, thus specifying it will lead to a start
/// up error.
///
/// Details: <https://github.com/paritytech/substrate/issues/8103>
#[arg(long)]
#[deprecated = "According to https://github.com/paritytech/substrate/issues/8103"]
pub unsafe_pruning: bool,

/// Method for executing Wasm runtime code.
#[arg(
long = "wasm-execution",
Expand Down
6 changes: 3 additions & 3 deletions utils/frame/benchmarking-cli/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ fn parse_pallet_name(pallet: &str) -> std::result::Result<String, String> {
#[derive(Debug, clap::Parser)]
pub struct PalletCmd {
/// Select a FRAME Pallet to benchmark, or `*` for all (in which case `extrinsic` must be `*`).
#[arg(short, long, value_parser = parse_pallet_name, required_unless_present = "list")]
#[arg(short, long, value_parser = parse_pallet_name, required_unless_present_any = ["list", "json_input"])]
pub pallet: Option<String>,

/// Select an extrinsic inside the pallet to benchmark, or `*` for all.
#[arg(short, long, required_unless_present = "list")]
#[arg(short, long, required_unless_present_any = ["list", "json_input"])]
pub extrinsic: Option<String>,

/// Select how many samples we should take across the variable components.
Expand Down Expand Up @@ -170,6 +170,6 @@ pub struct PalletCmd {
/// A path to a `.json` file with existing benchmark results generated with `--json` or
/// `--json-file`. When specified the benchmarks are not actually executed, and the data for
/// the analysis is read from this file.
#[clap(long)]
#[arg(long)]
pub json_input: Option<PathBuf>,
}
You are viewing a condensed version of this merge commit. You can view the full changes here.