diff --git a/wallet/src/main.rs b/wallet/src/main.rs index d9d189b16..c5de0afde 100644 --- a/wallet/src/main.rs +++ b/wallet/src/main.rs @@ -1,5 +1,6 @@ use clap::{ - crate_description, crate_name, crate_version, App, Arg, ArgGroup, ArgMatches, SubCommand, + crate_description, crate_name, crate_version, App, AppSettings, Arg, ArgGroup, ArgMatches, + SubCommand, }; use solana_sdk::signature::{gen_keypair_file, read_keypair, KeypairUtil}; use solana_wallet::wallet::{parse_command, process_command, WalletConfig, WalletError}; @@ -93,6 +94,7 @@ fn main() -> Result<(), Box> { let matches = App::new(crate_name!()) .about(crate_description!()) .version(crate_version!()) + .setting(AppSettings::ArgRequiredElseHelp) .arg( Arg::with_name("host") .short("n")