| 26 | "datetime[%Y-%m-%dT%H:%M:%S]"); |
| 27 | |
| 28 | int main(int argc, char **argv) { |
| 29 | |
| 30 | CLI::App app("custom validator testing"); |
| 31 | |
| 32 | std::string value; |
| 33 | app.add_option("--time", value, "enter a date in iso8601 format")->check(ISO8601)->required(); |
| 34 | |
| 35 | CLI11_PARSE(app, argc, argv); |
| 36 | |
| 37 | std::cout << "date given = " << value << '\n'; |
| 38 | |
| 39 | return 0; |
| 40 | } |
nothing calls this directly
no test coverage detected