mirror of
https://github.com/monero-project/monero.git
synced 2025-07-27 00:05:37 -04:00
add a command_line function to check for defaulted options
This commit is contained in:
parent
a2041c9874
commit
8f0cea6355
5 changed files with 17 additions and 11 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue