| 418 | } |
| 419 | |
| 420 | static 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 |
no outgoing calls
no test coverage detected