MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / parse_bool_value

Function parse_bool_value

subprojects/llama.cpp/common/arg.cpp:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420static bool parse_bool_value(const std::string & value) {
421 if (is_truthy(value)) {
422 return true;
423 } else if (is_falsey(value)) {
424 return false;
425 } else {
426 throw std::invalid_argument("invalid boolean value");
427 }
428}
429
430//
431// CLI argument parsing functions

Callers 1

common_params_parse_exFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected