Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | #endif | ||||
return true; | return true; | ||||
} | } | ||||
bool ArgsManager::ParseParameters(int argc, const char *const argv[], | bool ArgsManager::ParseParameters(int argc, const char *const argv[], | ||||
std::string &error) { | std::string &error) { | ||||
LOCK(cs_args); | LOCK(cs_args); | ||||
m_override_args.clear(); | m_override_args.clear(); | ||||
for (size_t i = 1; i < argc; i++) { | for (int i = 1; i < argc; i++) { | ||||
std::string key(argv[i]); | std::string key(argv[i]); | ||||
std::string val; | std::string val; | ||||
if (!ParseKeyValue(key, val)) { | if (!ParseKeyValue(key, val)) { | ||||
break; | break; | ||||
} | } | ||||
// Check for -nofoo | // Check for -nofoo | ||||
if (InterpretNegatedOption(key, val)) { | if (InterpretNegatedOption(key, val)) { | ||||
▲ Show 20 Lines • Show All 914 Lines • Show Last 20 Lines |