MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / InterpretNegativeSetting

Function InterpretNegativeSetting

src/util.cpp:328–335  ·  view source on GitHub ↗

Turn -noX into -X=0 */

Source from the content-addressed store, hash-verified

326
327/** Turn -noX into -X=0 */
328static void InterpretNegativeSetting(std::string& strKey, std::string& strValue)
329{
330 if (strKey.length()>3 && strKey[0]=='-' && strKey[1]=='n' && strKey[2]=='o')
331 {
332 strKey = "-" + strKey.substr(3);
333 strValue = InterpretBool(strValue) ? "0" : "1";
334 }
335}
336
337void ParseParameters(int argc, const char* const argv[])
338{

Callers 2

ParseParametersFunction · 0.85
ReadConfigFileFunction · 0.85

Calls 1

InterpretBoolFunction · 0.85

Tested by

no test coverage detected