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

Function main

examples/digit_args.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <iostream>
9
10int main(int argc, char **argv) {
11 CLI::App app;
12
13 int val{0};
14 // add a set of flags with default values associate with them
15 app.add_flag("-1{1},-2{2},-3{3},-4{4},-5{5},-6{6}, -7{7}, -8{8}, -9{9}", val, "compression level");
16
17 CLI11_PARSE(app, argc, argv);
18
19 std::cout << "value = " << val << '\n';
20 return 0;
21}

Callers

nothing calls this directly

Calls 1

add_flagMethod · 0.80

Tested by

no test coverage detected