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

Return a `const` reference to the value of the option having the specified `name`&period; The behavior is undefined unless this command&hyphen;line object `isParsed()`, `hasOption(name)`, `OptionType&colon;&colon;e&lowbar;STRING &equals;&equals; type(name)`, and `hasValue(name)`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[bsl::string] const&
theString(std::string&lowbar;view const& name) const;
----


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