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

Return the position where the option with the specified `name` has been entered on the command line (i&period;e&period;, the index in the `argv` argument to the `parse` method)&period; If the option was specified multiple times on the command line, return the position of the first instance&period; If the option was specified as an environment variable but not on the command line, return &hyphen;2&period; If the option was not specified, return &hyphen;1&period; The behavior is undefined unless the option is of scalar type&period;

== Synopsis

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

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


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