[#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‐line object is configured with an option having the specified `name`, and `false` otherwise. == Synopsis Declared in `<balcl_commandline.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasOption(std::string_view const& name) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#