| 15 | #include <fmt/format.h> |
| 16 | |
| 17 | bool CheckOption(const cxxopts::ParseResult& result, |
| 18 | const char* option) |
| 19 | { |
| 20 | // Check that the given option is valid. |
| 21 | if (option == nullptr) |
| 22 | { |
| 23 | return false; |
| 24 | } |
| 25 | |
| 26 | // Check whether 'option' is provided. |
| 27 | return ((result.count(option)) ? true : false); |
| 28 | } |
| 29 | |
| 30 | void CheckOptionDependency(const cxxopts::ParseResult& result, |
| 31 | const char* option, |
no test coverage detected