BloombergLP::balcl::CommandLine::isValidOptionSpecificationTable

Return true if the specified specTable of the specified length has a valid set of command-line option specifications, and false otherwise.

Synopsis

Declared in <balcl_commandline.h>

static
bool
isValidOptionSpecificationTable(
    OptionInfo const* specTable,
    int length);

Description

Optionally specify errorStream to which error messages are written. If no errorStream is specified, this method produces not output. See {Valid balcl::OptionInfo Specifications} for a description of the validity requirements. The behavior is undefined unless 0 <= length. Note that specTable need not be statically initialized.

Return Value

true if specTable has valid option specifications, and false otherwise

Parameters

NameDescription
specTableoption specification table
lengthnumber of entries in specTable