mirror of
https://github.com/monero-project/monero.git
synced 2024-12-15 04:46:31 +02:00
wallet_rpc_server: error out if wallet-file and wallet-dir are both used
This commit is contained in:
parent
91c7d68b2d
commit
97764bae3a
@ -179,8 +179,13 @@ namespace tools
|
||||
}
|
||||
}
|
||||
m_restricted = command_line::get_arg(*m_vm, arg_restricted);
|
||||
if (command_line::has_arg(*m_vm, arg_wallet_dir))
|
||||
if (!command_line::is_arg_defaulted(*m_vm, arg_wallet_dir))
|
||||
{
|
||||
if (!command_line::is_arg_defaulted(*m_vm, wallet_args::arg_wallet_file()))
|
||||
{
|
||||
MERROR(arg_wallet_dir.name << " and " << wallet_args::arg_wallet_file().name << " are incompatible, use only one of them");
|
||||
return false;
|
||||
}
|
||||
m_wallet_dir = command_line::get_arg(*m_vm, arg_wallet_dir);
|
||||
#ifdef _WIN32
|
||||
#define MKDIR(path, mode) mkdir(path)
|
||||
|
Loading…
Reference in New Issue
Block a user