folly::settings::printHelpIfNeeded

Outputs help message into stderr. May terminate program if error was encoutered during arguments parsing or exit is requested by caller.

Synopsis

Declared in <folly/settings/CommandLineParser.h>

void
printHelpIfNeeded(
    std::string_view app,
    bool exit_on_help = false);

Parameters

NameDescription
appinforgation about app printed before main help message
exit_on_helpflag to terminate process after printing help