[#BloombergLP-balcl-CommandLine-hasValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::hasValue :relfileprefix: ../../../ :mrdocs: Return `true` if this command‐line object's option having the specified `name` has a defined value, and `false` otherwise. An option has a defined value if `isSpecified(name)` or if a default value was configured for the option (see {Occurrence Information Field}). The behavior is undefined unless this command‐line object `isParsed()` and `hasOption(name)`. == Synopsis Declared in `<balcl_commandline.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasValue(std::string_view const& name) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#