1
0
Fork 0
forked from lthn/blockchain

added diagnostic message

This commit is contained in:
cryptozoidberg 2025-03-15 13:35:17 +04:00
parent ccfc0327e0
commit 3a29780d8f
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

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