| 15 | using CLI::ParseError; |
| 16 | |
| 17 | int main(int argc, char *argv[]) { |
| 18 | App app{"Module test"}; |
| 19 | |
| 20 | string value; |
| 21 | app.add_option("value", value, "A test value")->required(); |
| 22 | |
| 23 | try { |
| 24 | app.parse(argc, argv); |
| 25 | } catch(const ParseError &e) { |
| 26 | return app.exit(e); |
| 27 | } |
| 28 | |
| 29 | std::println("OK: import cli11 module\nvalue = {}", value); |
| 30 | |
| 31 | return 0; |
| 32 | } |
nothing calls this directly
no test coverage detected