[#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 of the option having the specified `name`. == Synopsis Declared in `<balcl_commandline.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int index(std::string_view const& name) const; ---- == Description Return ‐1 if the handle has no option of that name. Note that, on success, the return values are in the range `[0 .. numOptions() ‐ 1]`. == Return Value position of the named option, or ‐1 if not found == Parameters [cols="1,4"] |=== | Name| Description | *name* | option name to look up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#