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

Function main

examples/subcom_in_files/subcommand_main.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <CLI/CLI.hpp>
9
10int main(int argc, char **argv) {
11 CLI::App app{"..."};
12
13 // Call the setup functions for the subcommands.
14 // They are kept alive by a shared pointer in the
15 // lambda function held by CLI11
16 setup_subcommand_a(app);
17
18 // Make sure we get at least one subcommand
19 app.require_subcommand();
20
21 // More setup if needed, i.e., other subcommands etc.
22
23 CLI11_PARSE(app, argc, argv);
24
25 return 0;
26}

Callers

nothing calls this directly

Calls 2

setup_subcommand_aFunction · 0.85
require_subcommandMethod · 0.80

Tested by

no test coverage detected