From 357a59a1f7b4138060179a959140835ef03f63ed Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 19 Mar 2025 18:32:44 +0400 Subject: [PATCH] fixed issue with has_arg missing argument --- src/simplewallet/simplewallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 9e04f2f5..5674a3b0 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -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;