diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 56d0fd351e..712f6a14c3 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -616,6 +616,10 @@ fn main() { .help("List of slots to print"), ) ) + .subcommand( + SubCommand::with_name("genesis") + .about("Prints the ledger's genesis config") + ) .subcommand( SubCommand::with_name("genesis-hash") .about("Prints the ledger's genesis hash") @@ -763,6 +767,9 @@ fn main() { LedgerOutputMethod::Print, ); } + ("genesis", Some(_arg_matches)) => { + println!("{}", open_genesis_config(&ledger_path)); + } ("genesis-hash", Some(_arg_matches)) => { println!("{}", open_genesis_config(&ledger_path).hash()); }