Sets the "usage" message to be used by help reporting routines. For example: absl::SetProgramUsageMessage( absl::StrCat("This program does nothing. Sample usage:n", argv[0], " <uselessarg1> <uselessarg2>")); Do not include commandline flags in the usage: we do that for you! Note: Calling SetProgramUsageMessage twice will trigger a call to std::exit.

Synopsis

Declared in <absl/flags/usage.h>

void
SetProgramUsageMessage(std::string_view new_usage_message);

Parameters

Name

Description

new_usage_message

The usage message to set.

Created with MrDocs