forked from lthn/blockchain
fixed issue with has_arg missing argument
This commit is contained in:
parent
3e2a39db2c
commit
357a59a1f7
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
|
|||
{
|
||||
handle_command_line(vm);
|
||||
|
||||
if (command_line::has_arg(arg_daemon_address) && (command_line::has_arg(arg_daemon_host) || command_line::has_arg(arg_daemon_port)))
|
||||
if (command_line::has_arg(vm, arg_daemon_address) && (command_line::has_arg(vm, arg_daemon_host) || command_line::has_arg(vm, arg_daemon_port)))
|
||||
{
|
||||
fail_msg_writer() << "Please use either --daemon-address=\"host:port\" or specify both --daemon-host=\"host\" and --daemon-port=\"port\".";
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue