[#BloombergLP-balcl-CommandLine-2constructor-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::CommandLine
:relfileprefix: ../../../
:mrdocs:

Create an object accepting the command&hyphen;line options described by the specified `specTable` of the specified `length`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CommandLine(
    xref:BloombergLP/balcl/OptionInfo.adoc[OptionInfo] const* specTable,
    int length,
    std::ostream& errorStream,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `specTable` satisfies the `isValidOptionSpecificationTable` function&period; Note that an appropriate error message is written to the specified `errorStream`&period; Also note that `specTable` need not be statically initialized&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *specTable*
| option specification table
| *length*
| number of entries in `specTable`
| *errorStream*
| stream to which construction errors are written
| *basicAllocator*
| memory allocator (or 0 for the default)
|===


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