[#ArgsManager-GetBoolArg-0f]
= xref:ArgsManager.adoc[ArgsManager]::GetBoolArg
:relfileprefix: ../
:mrdocs:

Return boolean argument, or std&colon;&colon;nullopt if it was not set&period;

== Synopsis

Declared in `&lt;common&sol;args&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9524a22fc8)&rsqb;&rsqb;
std::optional&lt;bool&gt;
GetBoolArg(std::string const& strArg) const;
----

== Return Value

The boolean value, or std&colon;&colon;nullopt if unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strArg*
| Argument to get (e&period;g&period; &quot;&hyphen;foo&quot;)&period;
|===


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