| 8 | #include <CLI/CLI.hpp> |
| 9 | |
| 10 | int 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 | } |
nothing calls this directly
no test coverage detected