simplewallet: fix command argument and add skip_check_backround_mining arg.
This commit is contained in:
parent
893916ad09
commit
794cfcc267
|
@ -186,7 +186,8 @@ namespace
|
||||||
const command_line::arg_descriptor<std::string> arg_subaddress_lookahead = {"subaddress-lookahead", tools::wallet2::tr("Set subaddress lookahead sizes to <major>:<minor>"), ""};
|
const command_line::arg_descriptor<std::string> arg_subaddress_lookahead = {"subaddress-lookahead", tools::wallet2::tr("Set subaddress lookahead sizes to <major>:<minor>"), ""};
|
||||||
const command_line::arg_descriptor<bool> arg_use_english_language_names = {"use-english-language-names", sw::tr("Display English language names"), false};
|
const command_line::arg_descriptor<bool> arg_use_english_language_names = {"use-english-language-names", sw::tr("Display English language names"), false};
|
||||||
|
|
||||||
const command_line::arg_descriptor< std::vector<std::string> > arg_command = {"command", ""};
|
const command_line::arg_descriptor< std::vector<std::string> > arg_command = {"command", sw::tr("Command for wallet to run it. E.g. --command help all.")};
|
||||||
|
const command_line::arg_descriptor<bool> arg_skip_check_backround_mining = {"skip-checking-background-mining", sw::tr("Skip checking backround mining during startup."), true};
|
||||||
|
|
||||||
const char* USAGE_START_MINING("start_mining [<number_of_threads>] [bg_mining] [ignore_battery]");
|
const char* USAGE_START_MINING("start_mining [<number_of_threads>] [bg_mining] [ignore_battery]");
|
||||||
const char* USAGE_SET_DAEMON("set_daemon <host>[:<port>] [trusted|untrusted|this-is-probably-a-spy-node]");
|
const char* USAGE_SET_DAEMON("set_daemon <host>[:<port>] [trusted|untrusted|this-is-probably-a-spy-node]");
|
||||||
|
@ -4626,8 +4627,8 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
|
||||||
|
|
||||||
m_wallet->callback(this);
|
m_wallet->callback(this);
|
||||||
|
|
||||||
bool skip_check_backround_mining = !command_line::get_arg(vm, arg_command).empty();
|
bool skip_check_backround_mining = !command_line::get_arg(vm, arg_skip_check_backround_mining);
|
||||||
if (!skip_check_backround_mining)
|
if (skip_check_backround_mining)
|
||||||
check_background_mining(password);
|
check_background_mining(password);
|
||||||
|
|
||||||
if (welcome)
|
if (welcome)
|
||||||
|
@ -10418,6 +10419,7 @@ int main(int argc, char* argv[])
|
||||||
command_line::add_arg(desc_params, arg_generate_from_json);
|
command_line::add_arg(desc_params, arg_generate_from_json);
|
||||||
command_line::add_arg(desc_params, arg_mnemonic_language);
|
command_line::add_arg(desc_params, arg_mnemonic_language);
|
||||||
command_line::add_arg(desc_params, arg_command);
|
command_line::add_arg(desc_params, arg_command);
|
||||||
|
command_line::add_arg(desc_params, arg_skip_check_backround_mining);
|
||||||
|
|
||||||
command_line::add_arg(desc_params, arg_restore_deterministic_wallet );
|
command_line::add_arg(desc_params, arg_restore_deterministic_wallet );
|
||||||
command_line::add_arg(desc_params, arg_restore_from_seed );
|
command_line::add_arg(desc_params, arg_restore_from_seed );
|
||||||
|
|
Loading…
Reference in New Issue