Skip to content

Commit

Permalink
daemons: add help message when option errors occur
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Jul 25, 2022
1 parent 22aebc9 commit 4531bf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/lib/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ void InitCLIApp(CLI::App& app, std::string description, int fsfyear)
#ifdef HAVE_WIN32
app.allow_windows_style_options();
#endif
app.failure_message(CLI::FailureMessage::help);
}


void AddDebugOptions(CLI::App& app)
{
app.add_option("-d,--debug-level", debug_level, "Set debug level to <level>.")
Expand Down

0 comments on commit 4531bf9

Please sign in to comment.