[#BloombergLP-balcl-CommandLine-numSpecified]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::numSpecified
:relfileprefix: ../../../
:mrdocs:

Return how many times the option with `name` was entered on the command line&period;

== Synopsis

Declared in `&lt;balcl&lowbar;commandline&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
numSpecified(std::string&lowbar;view const& name) const;
----

== Description

Return 0 if `name` is not the name of a field in the command&hyphen;line specification passed at construction to this object&period; Note that, in order to receive the valid number of occurrences, the command line must be successfully parsed&period;

== Return Value

number of times the named option was entered on the command line

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| option name to query
|===


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