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

`GetBoolArg` overloads

== Synopses

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

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


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

[.small]#xref:ArgsManager/GetBoolArg-0f.adoc[_» more&period;&period;&period;_]#

Return boolean argument or default value


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e381adae8)&rsqb;&rsqb;
bool
xref:ArgsManager/GetBoolArg-02.adoc[GetBoolArg](
    std::string const& strArg,
    bool fDefault) const;
----

[.small]#xref:ArgsManager/GetBoolArg-02.adoc[_» more&period;&period;&period;_]#

== Return Value

* The boolean value, or std&colon;&colon;nullopt if unset&period;
* command&hyphen;line argument or default value

== Parameters

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


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