Commit 8846aa1 1 parent 546730c commit 8846aa1 Copy full SHA for 8846aa1
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ fn main() {
1375
1375
. index ( 2 )
1376
1376
. value_name ( "DIR" )
1377
1377
. takes_value ( true )
1378
- . help ( "Output directory for the snapshot [default: --ledger directory]" ) ,
1378
+ . help ( "Output directory for the snapshot [default: --snapshot-archive-path if present else -- ledger directory]" ) ,
1379
1379
)
1380
1380
. arg (
1381
1381
Arg :: with_name ( "warp_slot" )
@@ -2185,7 +2185,10 @@ fn main() {
2185
2185
}
2186
2186
( "create-snapshot" , Some ( arg_matches) ) => {
2187
2187
let output_directory = value_t ! ( arg_matches, "output_directory" , PathBuf )
2188
- . unwrap_or_else ( |_| ledger_path. clone ( ) ) ;
2188
+ . unwrap_or_else ( |_| match & snapshot_archive_path {
2189
+ Some ( snapshot_archive_path) => snapshot_archive_path. clone ( ) ,
2190
+ None => ledger_path. clone ( ) ,
2191
+ } ) ;
2189
2192
let mut warp_slot = value_t ! ( arg_matches, "warp_slot" , Slot ) . ok ( ) ;
2190
2193
let remove_stake_accounts = arg_matches. is_present ( "remove_stake_accounts" ) ;
2191
2194
let new_hard_forks = hardforks_of ( arg_matches, "hard_forks" ) ;
You can’t perform that action at this time.
0 commit comments