MCPcopy Create free account
hub / github.com/LUX-Core/lux / InterpretNegativeSetting

Function InterpretNegativeSetting

src/util.cpp:357–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357static void InterpretNegativeSetting(string name, map<string, string>& mapSettingsRet)
358{
359 // interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set
360 if (name.find("-no") == 0) {
361 std::string positive("-");
362 positive.append(name.begin() + 3, name.end());
363 if (mapSettingsRet.count(positive) == 0) {
364 bool value = !GetBoolArg(name, false);
365 mapSettingsRet[positive] = (value ? "1" : "0");
366 }
367 }
368}
369
370void ParseParameters(int argc, const char* const argv[])
371{

Callers 2

ParseParametersFunction · 0.85
ReadConfigFileFunction · 0.85

Calls 6

GetBoolArgFunction · 0.85
findMethod · 0.45
appendMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected