[#BloombergLP-balcl-CommandLine-isValidOptionSpecificationTable-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::isValidOptionSpecificationTable
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `specTable` of the specified `length` has a valid set of command&hyphen;line option specifications, and `false` otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidOptionSpecificationTable(
    xref:BloombergLP/balcl/OptionInfo.adoc[OptionInfo] const* specTable,
    int length);
----

== Description

Optionally specify `errorStream` to which error messages are written&period; If no `errorStream` is specified, this method produces not output&period; See &lcub;Valid `balcl&colon;&colon;OptionInfo` Specifications&rcub; for a description of the validity requirements&period; The behavior is undefined unless `0 &lt;&equals; length`&period; Note that `specTable` need not be statically initialized&period;

== Return Value

`true` if `specTable` has valid option specifications, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *specTable*
| option specification table
| *length*
| number of entries in `specTable`
|===


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