[#absl-SetProgramUsageMessage]
= xref:absl.adoc[absl]::SetProgramUsageMessage
:relfileprefix: ../
:mrdocs:

Sets the &quot;usage&quot; message to be used by help reporting routines&period; For example&colon; absl&colon;&colon;SetProgramUsageMessage( absl&colon;&colon;StrCat(&quot;This program does nothing&period; Sample usage&colon;n&quot;, argv&lsqb;0&rsqb;, &quot; &lt;uselessarg1&gt; &lt;uselessarg2&gt;&quot;))&semi; Do not include commandline flags in the usage&colon; we do that for you! Note&colon; Calling SetProgramUsageMessage twice will trigger a call to std&colon;&colon;exit&period;

== Synopsis

Declared in `&lt;absl&sol;flags&sol;usage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetProgramUsageMessage(std::string&lowbar;view new&lowbar;usage&lowbar;message);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;usage&lowbar;message*
| The usage message to set&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
