1
0
Fork 0
forked from lthn/blockchain

fixed issue with has_arg missing argument

This commit is contained in:
cryptozoidberg 2025-03-19 18:32:44 +04:00
parent 3e2a39db2c
commit 357a59a1f7
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

@ -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;