message: Secure entry for wallet import
diff: @@ -2204,8 +2204,15 @@ int main( int argc, char** argv ) {
  string wallet_key_str;
  auto importWallet = wallet->add_subcommand("import", localized("Import private key into wallet"), false);
  importWallet->add_option("-n,--name", wallet_name, localized("The name of the wallet to import key into"));
  - importWallet->add_option("key", wallet_key_str, localized("Private key in WIF format to import"))->required();
  + importWallet->add_option("--private-key", wallet_key_str, localized("Private key in WIF format to import"));
  importWallet->set_callback([&wallet_name, &wallet_key_str] {
  + if( wallet_key_str.size() == 0 ) {
  + std::cout << localized("password: ");
  + fc::set_console_echo(false);
  + std::getline( std::cin, wallet_key_str, '\n' );
  + fc::set_console_echo(true);
  + }
  +
  private_key_type wallet_key;
  try {
  wallet_key = private_key_type( wallet_key_str );
  