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

Function main

examples/json.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108};
109
110int main(int argc, char **argv) {
111 CLI::App app;
112 app.config_formatter(std::make_shared<ConfigJSON>());
113
114 int item;
115
116 app.add_flag("--simple");
117 app.add_option("--item", item);
118 app.set_config("--config");
119
120 CLI11_PARSE(app, argc, argv);
121
122 std::cout << app.config_to_str(true, true) << std::endl;
123}

Callers

nothing calls this directly

Calls 4

config_formatterMethod · 0.80
add_flagMethod · 0.80
set_configMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected