[#BloombergLP-balcl-OptionInfo-2constructor-0af]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionInfo.adoc[OptionInfo]::OptionInfo
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create an `OptionInfo` with the specified `tag`, `name`, and `description`, with `d&lowbar;typeInfo`, `d&lowbar;defaultInfo`, and `d&lowbar;environmentVariableName` default&hyphen;constructed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionInfo/2constructor-0a6.adoc[OptionInfo](
    std::string&lowbar;view tag = &quot;&quot;,
    std::string&lowbar;view name = &quot;&quot;,
    std::string&lowbar;view description = &quot;&quot;);
----

[.small]#xref:BloombergLP/balcl/OptionInfo/2constructor-0a6.adoc[_» more&period;&period;&period;_]#

Create an `OptionInfo` with the specified `tag`, `name`, `description`, and `typeInfo`, with `d&lowbar;defaultInfo`, and `d&lowbar;environmentVariableName` default&hyphen;constructed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionInfo/2constructor-00.adoc[OptionInfo](
    std::string&lowbar;view tag,
    std::string&lowbar;view name,
    std::string&lowbar;view description,
    xref:BloombergLP/balcl/TypeInfo.adoc[TypeInfo] const& typeInfo);
----

[.small]#xref:BloombergLP/balcl/OptionInfo/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create an `OptionInfo` with the specified `tag`, `name`, `description`, `typeInfo`, `defaultInfo`, and `envVarName`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionInfo/2constructor-08.adoc[OptionInfo](
    std::string&lowbar;view tag,
    std::string&lowbar;view name,
    std::string&lowbar;view description,
    xref:BloombergLP/balcl/TypeInfo.adoc[TypeInfo] const& typeInfo,
    xref:BloombergLP/balcl/OccurrenceInfo.adoc[OccurrenceInfo] const& defaultInfo,
    std::string&lowbar;view envVarName = &quot;&quot;);
----

[.small]#xref:BloombergLP/balcl/OptionInfo/2constructor-08.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| tags (or &quot;&quot; for non&hyphen;option argument)
| *name*
| accessing name
| *description*
| description used in printing usage
| *typeInfo*
| type and linked&hyphen;variable information for the option value
| *defaultInfo*
| occurrence information and optional default value
| *envVarName*
| environment variable name supplying a default value
|===


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