| 2 | #include <iostream> |
| 3 | |
| 4 | int main(int argc, char **argv) { |
| 5 | CLI::App app{"App description"}; |
| 6 | |
| 7 | // Define options |
| 8 | int p = 0; |
| 9 | app.add_option("-p", p, "Parameter"); |
| 10 | |
| 11 | CLI11_PARSE(app, argc, argv); |
| 12 | |
| 13 | std::cout << "Parameter value: " << p << std::endl; |
| 14 | return 0; |
| 15 | } |
nothing calls this directly
no test coverage detected