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

Add argument

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9524a23748)&rsqb;&rsqb;
void
AddArg(
    std::string const& name,
    std::string const& help,
    unsigned int flags,
    xref:OptionsCategory.adoc[OptionsCategory] const& cat);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| Argument name including any parameter (e&period;g&period; &quot;&hyphen;foo&equals;&lt;n&gt;&quot;)&period;
| *help*
| Help text describing the argument&period;
| *flags*
| Flags controlling validation and interpretation&period;
| *cat*
| Help category the argument belongs to&period;
|===


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