| 108 | }; |
| 109 | |
| 110 | int 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 | } |
nothing calls this directly
no test coverage detected