MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / main

Function main

examples/validators.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <string>
10
11int 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}

Callers

nothing calls this directly

Calls 3

RangeClass · 0.85
checkMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected