From 3a29780d8f6a3d8802a548d896d90ba63b20a6ad Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 15 Mar 2025 13:35:17 +0400 Subject: [PATCH] added diagnostic message --- src/simplewallet/simplewallet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index ef5d36fa..9e04f2f5 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -417,6 +417,13 @@ 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))) + { + fail_msg_writer() << "Please use either --daemon-address=\"host:port\" or specify both --daemon-host=\"host\" and --daemon-port=\"port\"."; + return false; + } + + if (!m_daemon_address.empty() && !m_daemon_host.empty() && 0 != m_daemon_port) { fail_msg_writer() << "you can't specify daemon host or port several times";