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

Function main

examples/array_option.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <iostream>
12
13int main(int argc, char **argv) {
14 std::array<int, 2> a{0, 1};
15 CLI::App app{"My app"};
16 app.add_option("--a", a, "an array")->capture_default_str();
17 app.parse(argc, argv);
18
19 std::cout << "pass\n";
20 return 0;
21}

Callers

nothing calls this directly

Calls 2

parseMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected