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

Forces an arg setting&period; Called by SoftSetArg() if the arg hasn&apos;t already been set&period; Also called directly in testing&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e381adfe8)&rsqb;&rsqb;
void
ForceSetArg(
    std::string const& strArg,
    std::string const& strValue);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strArg*
| Argument to set (e&period;g&period; &quot;&hyphen;foo&quot;)&period;
| *strValue*
| Value to force the argument to&period;
|===


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