| 411 | } |
| 412 | |
| 413 | static bool parse_bool_value(const std::string & value) { |
| 414 | if (is_truthy(value)) { |
| 415 | return true; |
| 416 | } else if (is_falsey(value)) { |
| 417 | return false; |
| 418 | } else { |
| 419 | throw std::invalid_argument("invalid boolean value"); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | // |
| 424 | // CLI argument parsing functions |
no outgoing calls
no test coverage detected