diff --git a/validator/src/main.rs b/validator/src/main.rs index d6d54110b6..7e8aa71aba 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -1755,8 +1755,8 @@ pub fn main() { let snapshot_interval_slots = value_t_or_exit!(matches, "snapshot_interval_slots", u64); let maximum_local_snapshot_age = value_t_or_exit!(matches, "maximum_local_snapshot_age", u64); - let snapshot_output_dir = if matches.is_present("snapshot_dir") { - PathBuf::from(matches.value_of("snapshot_dir").unwrap()) + let snapshot_output_dir = if matches.is_present("snapshots") { + PathBuf::from(matches.value_of("snapshots").unwrap()) } else { ledger_path.clone() };