MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / set

Method set

lib/config/flags.cc:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void BoolFlag::set(const std::string& value)
222{
223 if ((value == "true") || (value == "y"))
224 _value = true;
225 else if ((value == "false") || (value == "n"))
226 _value = false;
227 else
228 error("can't parse '{}'; try 'true' or 'false'", value);
229 _callback(_value);
230 _isSet = true;
231}
232
233const std::string HexIntFlag::defaultValueAsString() const
234{

Callers 1

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected