THROW_WALLET_EXCEPTION_IF(!password_prompter,tools::error::wallet_internal_error,tools::wallet2::tr("no password specified; use --prompt-for-password to prompt for a password"));
returnpassword_prompter(verify?tr("Enter new wallet password"):tr("Wallet password"),verify);
constcommand_line::arg_descriptor<bool>arg_disable_rpc_login={"disable-rpc-login","Disable HTTP authentication for RPC connections served by this process"};
constcommand_line::arg_descriptor<bool>arg_trusted_daemon={"trusted-daemon","Enable commands which rely on a trusted daemon",false};
constcommand_line::arg_descriptor<std::string>arg_wallet_dir={"wallet-dir","Directory for newly created wallets"};
constcommand_line::arg_descriptor<bool>arg_prompt_for_password={"prompt-for-password","Prompts for password when not provided",false};