add a command_line function to check for defaulted options

This commit is contained in:
moneromooo-monero 2017-10-06 10:55:36 +01:00
parent a2041c9874
commit 8f0cea6355
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 17 additions and 11 deletions

View file

@ -109,7 +109,7 @@ int main(int argc, char* argv[])
}
mlog_configure(mlog_get_default_log_path("monero-blockchain-export.log"), true);
if (!vm["log-level"].defaulted())
if (!command_line::is_arg_defaulted(vm, arg_log_level))
mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str());
else
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());