Default --ledger arg to "ledger" for solana-validator and solana-ledger-tool

This commit is contained in:
Michael Vines
2021-03-11 11:14:54 -08:00
parent 1061d021c9
commit aa2b2d6b75
3 changed files with 16 additions and 6 deletions

View File

@@ -221,7 +221,8 @@ impl BigTableSubCommand for App<'_, '_> {
self.subcommand(
SubCommand::with_name("bigtable")
.about("Ledger data on a BigTable instance")
.setting(AppSettings::ArgRequiredElseHelp)
.setting(AppSettings::InferSubcommands)
.setting(AppSettings::SubcommandRequiredElseHelp)
.subcommand(
SubCommand::with_name("upload")
.about("Upload the ledger to BigTable")