BloombergLP::balcl::OptionInfo::OptionInfo

Create an OptionInfo with the specified tag, name, description, typeInfo, defaultInfo, and envVarName.

Synopsis

Declared in <balcl_optioninfo.h>

OptionInfo(
    std::string_view tag,
    std::string_view name,
    std::string_view description,
    TypeInfo const& typeInfo,
    OccurrenceInfo const& defaultInfo,
    std::string_view envVarName = "");

Parameters

NameDescription
tagtags (or "" for non-option argument)
nameaccessing name
descriptiondescription used in printing usage
typeInfotype and linked-variable information for the option value
defaultInfooccurrence information and optional default value
envVarNameenvironment variable name supplying a default value