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

Return `true` if this command&hyphen;line object is configured with an option having the specified `name`, and `false` otherwise&period;

== Synopsis

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

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


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