| 9 | #include <string> |
| 10 | |
| 11 | int main(int argc, char **argv) { |
| 12 | |
| 13 | CLI::App app("Validator checker"); |
| 14 | |
| 15 | std::string file; |
| 16 | app.add_option("-f,--file,file", file, "File name")->check(CLI::ExistingFile); |
| 17 | |
| 18 | int count{0}; |
| 19 | app.add_option("-v,--value", count, "Value in range")->check(CLI::Range(3, 6)); |
| 20 | CLI11_PARSE(app, argc, argv); |
| 21 | |
| 22 | std::cout << "Try printing help or failing the validator" << '\n'; |
| 23 | |
| 24 | return 0; |
| 25 | } |
nothing calls this directly
no test coverage detected