MCPcopy Create free account
hub / github.com/beefytech/Beef / CheckBoolean

Function CheckBoolean

BeefLink/BeefLink.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static bool CheckBoolean(const std::string& arg)
48{
49 if (stricmp(arg.c_str(), "YES") == 0)
50 return true;
51 if (stricmp(arg.c_str(), "NO") == 0)
52 return false;
53 Fail(StrFormat("Invalid boolean argument: %s", arg.c_str()));
54 return false;
55}
56
57BlContext* blContext;
58std::vector<std::string> fileNames;

Callers 1

HandleParamFunction · 0.85

Calls 2

FailFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected