[#ArgsManager-GetArg-00]
= xref:ArgsManager.adoc[ArgsManager]::GetArg
:relfileprefix: ../
:mrdocs:

Return integer 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"]
----
template&lt;std::integral Int&gt;
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e381ad728)&rsqb;&rsqb;
std::optional&lt;Int&gt;
GetArg(std::string const& strArg) const;
----

== Return Value

The integer 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]#
