@@ -41,10 +41,13 @@ use crate::{
4141 RefTimeInfo , SharedParams , LOG_TARGET ,
4242} ;
4343
44- /// Configuration for [`run`].
44+ /// Configuration for the `on_runtime_upgrade` command.
45+ ///
46+ /// The parameters below control the behavior of runtime upgrade checks e.g. whether to disable
47+ /// weight warnings, whether to run multi-block migration checks.
4548#[ derive( Debug , Clone , clap:: Parser ) ]
4649pub struct Command {
47- /// The state type to use.
50+ /// The source of the blockchain state to use when running the `on-runtime-upgrade` command .
4851 #[ command( subcommand) ]
4952 pub state : State ,
5053
@@ -66,7 +69,7 @@ pub struct Command {
6669 ) ]
6770 pub checks : UpgradeCheckSelect ,
6871
69- /// Whether to disable weight warnings, useful if the runtime is for a relay chain .
72+ /// Whether to disable weight warnings. Useful if a relay chain's runtime is being tested .
7073 #[ clap( long, default_value = "false" , default_missing_value = "true" ) ]
7174 pub no_weight_warnings : bool ,
7275
@@ -75,7 +78,7 @@ pub struct Command {
7578 #[ clap( long, default_value = "false" , default_missing_value = "true" ) ]
7679 pub disable_spec_version_check : bool ,
7780
78- /// Whether to disable migration idempotency checks
81+ /// Whether to disable migration idempotency checks.
7982 #[ clap( long, default_value = "false" , default_missing_value = "true" ) ]
8083 pub disable_idempotency_checks : bool ,
8184
@@ -84,18 +87,18 @@ pub struct Command {
8487 #[ clap( long, default_value = "false" , default_missing_value = "true" ) ]
8588 pub print_storage_diff : bool ,
8689
87- /// Whether or multi-block migrations should be executed to completion after single block
90+ /// Whether or not multi-block migrations should be executed to completion after single- block
8891 /// migratons are completed.
8992 #[ clap( long, default_value = "false" , default_missing_value = "true" ) ]
9093 pub disable_mbm_checks : bool ,
9194
92- /// The maximum duration we expect all MBMs combined to take.
95+ /// The maximum duration that all MBMs combined are expected to take.
9396 ///
94- /// This value is just here to ensure that the CLI won't run forever in case of a buggy MBM.
97+ /// This value ensures the CLI won't run indefinitely in case of a buggy MBM.
9598 #[ clap( long, default_value = "600" ) ]
9699 pub mbm_max_blocks : u32 ,
97100
98- /// The chain blocktime in milliseconds.
101+ /// The chain blocktime, in milliseconds.
99102 #[ arg( long) ]
100103 pub blocktime : u64 ,
101104}
0 commit comments