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

Check that any command&hyphen;specific options the user specified are valid for the given command&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e381ac828)&rsqb;&rsqb;
bool
CheckCommandOptions(
    std::string const& command,
    std::vector&lt;std::string&gt;* errors = nullptr) const;
----

== Return Value

false if any command&hyphen;specific options were specified that are not valid for this command

== Parameters

[cols="1,4"]
|===
| Name| Description
| *command* [in]
| The command being run&period;
| *errors* [out]
| If non&hyphen;null, populated with a message for each invalid option&period;
|===


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