mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Update clap to version 4 (#6128)
* Move clap to 4.0.9
* Remove "deprecated" feature flag
* Convert to default_value_t
* update lockfile for {"substrate"}
* Add group(skip) to avoid naming conflict
* More group(skip)
Co-authored-by: parity-processbot <>
This commit is contained in:
+15
-14
@@ -43,16 +43,16 @@ pub enum Subcommand {
|
||||
Revert(sc_cli::RevertCmd),
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[clap(name = "prepare-worker", hide = true)]
|
||||
#[command(name = "prepare-worker", hide = true)]
|
||||
PvfPrepareWorker(ValidationWorkerCommand),
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[clap(name = "execute-worker", hide = true)]
|
||||
#[command(name = "execute-worker", hide = true)]
|
||||
PvfExecuteWorker(ValidationWorkerCommand),
|
||||
|
||||
/// Sub-commands concerned with benchmarking.
|
||||
/// The pallet benchmarking moved to the `pallet` sub-command.
|
||||
#[clap(subcommand)]
|
||||
#[command(subcommand)]
|
||||
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
||||
|
||||
/// Runs performance checks such as PVF compilation in order to measure machine
|
||||
@@ -68,7 +68,7 @@ pub enum Subcommand {
|
||||
TryRuntime,
|
||||
|
||||
/// Key management CLI utilities
|
||||
#[clap(subcommand)]
|
||||
#[command(subcommand)]
|
||||
Key(sc_cli::KeySubcommand),
|
||||
|
||||
/// Db meta columns information.
|
||||
@@ -84,21 +84,22 @@ pub struct ValidationWorkerCommand {
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Debug, Parser)]
|
||||
#[group(skip)]
|
||||
pub struct RunCmd {
|
||||
#[allow(missing_docs)]
|
||||
#[clap(flatten)]
|
||||
pub base: sc_cli::RunCmd,
|
||||
|
||||
/// Force using Kusama native runtime.
|
||||
#[clap(long = "force-kusama")]
|
||||
#[arg(long = "force-kusama")]
|
||||
pub force_kusama: bool,
|
||||
|
||||
/// Force using Westend native runtime.
|
||||
#[clap(long = "force-westend")]
|
||||
#[arg(long = "force-westend")]
|
||||
pub force_westend: bool,
|
||||
|
||||
/// Force using Rococo native runtime.
|
||||
#[clap(long = "force-rococo")]
|
||||
#[arg(long = "force-rococo")]
|
||||
pub force_rococo: bool,
|
||||
|
||||
/// Setup a GRANDPA scheduled voting pause.
|
||||
@@ -107,25 +108,25 @@ pub struct RunCmd {
|
||||
/// blocks). After the given block number is finalized the GRANDPA voter
|
||||
/// will temporarily stop voting for new blocks until the given delay has
|
||||
/// elapsed (i.e. until a block at height `pause_block + delay` is imported).
|
||||
#[clap(long = "grandpa-pause", number_of_values(2))]
|
||||
#[arg(long = "grandpa-pause", num_args = 2)]
|
||||
pub grandpa_pause: Vec<u32>,
|
||||
|
||||
/// Enable the BEEFY gadget (only on Rococo or Wococo for now).
|
||||
#[clap(long)]
|
||||
#[arg(long)]
|
||||
pub beefy: bool,
|
||||
|
||||
/// Add the destination address to the jaeger agent.
|
||||
///
|
||||
/// Must be valid socket address, of format `IP:Port`
|
||||
/// commonly `127.0.0.1:6831`.
|
||||
#[clap(long)]
|
||||
#[arg(long)]
|
||||
pub jaeger_agent: Option<String>,
|
||||
|
||||
/// Add the destination address to the `pyroscope` agent.
|
||||
///
|
||||
/// Must be valid socket address, of format `IP:Port`
|
||||
/// commonly `127.0.0.1:4040`.
|
||||
#[clap(long)]
|
||||
#[arg(long)]
|
||||
pub pyroscope_server: Option<String>,
|
||||
|
||||
/// Disable automatic hardware benchmarks.
|
||||
@@ -135,20 +136,20 @@ pub struct RunCmd {
|
||||
///
|
||||
/// The results are then printed out in the logs, and also sent as part of
|
||||
/// telemetry, if telemetry is enabled.
|
||||
#[clap(long)]
|
||||
#[arg(long)]
|
||||
pub no_hardware_benchmarks: bool,
|
||||
|
||||
/// Overseer message capacity override.
|
||||
///
|
||||
/// **Dangerous!** Do not touch unless explicitly adviced to.
|
||||
#[clap(long)]
|
||||
#[arg(long)]
|
||||
pub overseer_channel_capacity_override: Option<usize>,
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct Cli {
|
||||
#[clap(subcommand)]
|
||||
#[command(subcommand)]
|
||||
pub subcommand: Option<Subcommand>,
|
||||
#[clap(flatten)]
|
||||
pub run: RunCmd,
|
||||
|
||||
Reference in New Issue
Block a user