BloombergLP::balcl::CommandLine::numSpecified

Return how many times the option with name was entered on the command line.

Synopsis

Declared in <balcl_commandline.h>

int
numSpecified(std::string_view const& name) const;

Description

Return 0 if name is not the name of a field in the command-line specification passed at construction to this object. Note that, in order to receive the valid number of occurrences, the command line must be successfully parsed.

Return Value

number of times the named option was entered on the command line

Parameters

NameDescription
nameoption name to query