Add --snapshot-version stub to ease migration to 1.2.0 (#10921)
This commit is contained in:
@ -697,6 +697,15 @@ pub fn main() {
|
||||
.help("Number of slots between generating snapshots, \
|
||||
0 to disable snapshots"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("snapshot_version")
|
||||
.long("snapshot-version")
|
||||
.value_name("SNAPSHOT_VERSION")
|
||||
.validator(|s: String| if s == "1.1.0" { Ok(()) } else { Err(format!("Invalid snapshot version: {}", s)) })
|
||||
.takes_value(true)
|
||||
.default_value("1.1.0")
|
||||
.help("Output snapshot version"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("limit_ledger_size")
|
||||
.long("limit-ledger-size")
|
||||
|
Reference in New Issue
Block a user