BloombergLP::balcl::CommandLine::isSpecified

Return true if the option with name was entered on the command line.

Synopsis

Declared in <balcl_commandline.h>

bool
isSpecified(
    std::string_view const& name,
    int* count) const;

Description

Load into the specified count the number of times the option name has been entered on the command line; otherwise, return false and leave count unaffected. Note that, in order to receive valid values, the command line must be successfully parsed.

Return Value

true if the named option was entered on the command line, and false otherwise

Parameters

NameDescription
nameoption name to query
countloaded with the number of times name was entered