diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 60afe7f37f..3f5511d228 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -1060,9 +1060,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.0.14" +version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b63edc3f163b3c71ec8aa23f9bd6070f77edbf3d1d198b164afa90ff00e4ec62" +checksum = "6d76c22c9b9b215eeb8d016ad3a90417bd13cb24cf8142756e6472445876cab7" dependencies = [ "atty", "bitflags", @@ -1077,9 +1077,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.0.6" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "517358c28fcef6607bf6f76108e02afad7e82297d132a6b846dcc1fc3efcd153" +checksum = "5fd1122e63869df2cb309f449da1ad54a7c6dfeb7c7e6ccd8e0825d9eb93bb72" dependencies = [ "heck 0.4.0", "proc-macro-error", diff --git a/polkadot/cli/Cargo.toml b/polkadot/cli/Cargo.toml index ad8936e6cb..366258a017 100644 --- a/polkadot/cli/Cargo.toml +++ b/polkadot/cli/Cargo.toml @@ -14,7 +14,7 @@ wasm-opt = false crate-type = ["cdylib", "rlib"] [dependencies] -clap = { version = "3.0", features = ["derive"], optional = true } +clap = { version = "3.1", features = ["derive"], optional = true } log = "0.4.13" thiserror = "1.0.30" futures = "0.3.21" diff --git a/polkadot/cli/src/cli.rs b/polkadot/cli/src/cli.rs index bbd72ffd54..39639d9d3e 100644 --- a/polkadot/cli/src/cli.rs +++ b/polkadot/cli/src/cli.rs @@ -16,7 +16,7 @@ //! Polkadot CLI library. -use clap::{AppSettings, Parser}; +use clap::Parser; #[allow(missing_docs)] #[derive(Debug, Parser)] @@ -43,11 +43,11 @@ pub enum Subcommand { Revert(sc_cli::RevertCmd), #[allow(missing_docs)] - #[clap(name = "prepare-worker", setting = AppSettings::Hidden)] + #[clap(name = "prepare-worker", hide = true)] PvfPrepareWorker(ValidationWorkerCommand), #[allow(missing_docs)] - #[clap(name = "execute-worker", setting = AppSettings::Hidden)] + #[clap(name = "execute-worker", hide = true)] PvfExecuteWorker(ValidationWorkerCommand), /// The custom benchmark subcommand benchmarking runtime pallets. diff --git a/polkadot/node/malus/Cargo.toml b/polkadot/node/malus/Cargo.toml index 8b72a4a6fe..68e6b82f7e 100644 --- a/polkadot/node/malus/Cargo.toml +++ b/polkadot/node/malus/Cargo.toml @@ -28,7 +28,7 @@ color-eyre = { version = "0.6.0", default-features = false } assert_matches = "1.5" async-trait = "0.1.52" sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } -clap = { version = "3.0", features = ["derive"] } +clap = { version = "3.1", features = ["derive"] } futures = "0.3.21" futures-timer = "3.0.2" tracing = "0.1.31" diff --git a/polkadot/node/malus/src/malus.rs b/polkadot/node/malus/src/malus.rs index a94c195cf5..11b50cb2c2 100644 --- a/polkadot/node/malus/src/malus.rs +++ b/polkadot/node/malus/src/malus.rs @@ -16,7 +16,7 @@ //! A malus or nemesis node launch code. -use clap::{AppSettings, Parser}; +use clap::Parser; use color_eyre::eyre; use polkadot_cli::{Cli, RunCmd}; @@ -40,11 +40,11 @@ enum NemesisVariant { DisputeAncestor(RunCmd), #[allow(missing_docs)] - #[clap(name = "prepare-worker", setting = AppSettings::Hidden)] + #[clap(name = "prepare-worker", hide = true)] PvfPrepareWorker(polkadot_cli::ValidationWorkerCommand), #[allow(missing_docs)] - #[clap(name = "execute-worker", setting = AppSettings::Hidden)] + #[clap(name = "execute-worker", hide = true)] PvfExecuteWorker(polkadot_cli::ValidationWorkerCommand), } diff --git a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml index 8f593b0ad9..3c6f49bfd4 100644 --- a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml +++ b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml @@ -15,7 +15,7 @@ path = "bin/puppet_worker.rs" [dependencies] parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } -clap = { version = "3.0", features = ["derive"] } +clap = { version = "3.1", features = ["derive"] } futures = "0.3.21" futures-timer = "3.0.2" log = "0.4.13" diff --git a/polkadot/utils/generate-bags/Cargo.toml b/polkadot/utils/generate-bags/Cargo.toml index 4cb2d82e30..82a455fbdb 100644 --- a/polkadot/utils/generate-bags/Cargo.toml +++ b/polkadot/utils/generate-bags/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Parity Technologies "] edition = "2018" [dependencies] -clap = { version = "3.0", features = ["derive"] } +clap = { version = "3.1", features = ["derive"] } generate-bags = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml b/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml index ad4ac13acc..ff4cd45ec6 100644 --- a/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml +++ b/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml @@ -17,6 +17,6 @@ sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "master frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } -clap = { version = "3.0", features = ["derive"] } +clap = { version = "3.1", features = ["derive"] } log = "0.4.14" tokio = { version = "1.17.0", features = ["macros"] } diff --git a/polkadot/utils/staking-miner/Cargo.toml b/polkadot/utils/staking-miner/Cargo.toml index 63ce86612f..8126c84e1a 100644 --- a/polkadot/utils/staking-miner/Cargo.toml +++ b/polkadot/utils/staking-miner/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Parity Technologies "] edition = "2018" [dependencies] -clap = { version = "3.0", features = ["derive", "env"] } +clap = { version = "3.1", features = ["derive", "env"] } codec = { package = "parity-scale-codec", version = "2.0.0" } tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } jsonrpsee = { version = "0.8", features = ["ws-client", "macros"] }