Fixed CLI11 print help handling
This commit is contained in:
@@ -110,6 +110,9 @@ cli_flow_t cli_handler::parse(int argc, const char **argv)
|
|||||||
try {
|
try {
|
||||||
app.parse(argc, argv);
|
app.parse(argc, argv);
|
||||||
}
|
}
|
||||||
|
catch (const CLI::CallForHelp &e) {
|
||||||
|
exit(app.exit(e)); // NOLINT(concurrency-mt-unsafe)
|
||||||
|
}
|
||||||
catch (const CLI::Success &e) {
|
catch (const CLI::Success &e) {
|
||||||
return cli_flow_t::kExit;
|
return cli_flow_t::kExit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user