Fixed CLI11 print help handling

This commit is contained in:
Bartek Kryza
2023-04-07 00:46:01 +02:00
parent 2a6f515b47
commit e2a6b81f7f

View File

@@ -110,6 +110,9 @@ cli_flow_t cli_handler::parse(int argc, const char **argv)
try {
app.parse(argc, argv);
}
catch (const CLI::CallForHelp &e) {
exit(app.exit(e)); // NOLINT(concurrency-mt-unsafe)
}
catch (const CLI::Success &e) {
return cli_flow_t::kExit;
}