[#BloombergLP-balcl-CommandLineOptionsHandle-index]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLineOptionsHandle.adoc[CommandLineOptionsHandle]::index
:relfileprefix: ../../../
:mrdocs:

Return the position in this handle object of the option having the specified `name`, and &hyphen;1 if the handle has no option of that name&period; Note that, on success, the return values are in the range `&lsqb;0 &period;&period; numOptions() &hyphen; 1&rsqb;`&period;

== Synopsis

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

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


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