Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 653 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void ArgsManager::AddHiddenArgs(const std::vector<std::string> &names) { | void ArgsManager::AddHiddenArgs(const std::vector<std::string> &names) { | ||||
for (const std::string &name : names) { | for (const std::string &name : names) { | ||||
AddArg(name, "", ArgsManager::ALLOW_ANY, OptionsCategory::HIDDEN); | AddArg(name, "", ArgsManager::ALLOW_ANY, OptionsCategory::HIDDEN); | ||||
} | } | ||||
} | } | ||||
void ArgsManager::ClearArg(const std::string &strArg) { | void ArgsManager::ClearForcedArg(const std::string &strArg) { | ||||
LOCK(cs_args); | LOCK(cs_args); | ||||
m_override_args.erase(strArg); | m_override_args.erase(strArg); | ||||
m_config_args.erase(strArg); | |||||
} | } | ||||
std::string ArgsManager::GetHelpMessage() const { | std::string ArgsManager::GetHelpMessage() const { | ||||
const bool show_debug = gArgs.GetBoolArg("-help-debug", false); | const bool show_debug = gArgs.GetBoolArg("-help-debug", false); | ||||
std::string usage = ""; | std::string usage = ""; | ||||
LOCK(cs_args); | LOCK(cs_args); | ||||
for (const auto &arg_map : m_available_args) { | for (const auto &arg_map : m_available_args) { | ||||
▲ Show 20 Lines • Show All 736 Lines • Show Last 20 Lines |