[#BloombergLP-balcl-CommandLine-2constructor-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::CommandLine :relfileprefix: ../../../ :mrdocs: Create an object accepting the command‐line options described by the specified (statically‐initialized) `specTable`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `specTable` satisfies the `isValidOptionSpecificationTable` function. Note that an appropriate error message is written to `bsl::cerr`. == Synopsis Declared in `<balcl_commandline.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<int LENGTH> explicit CommandLine( xref:BloombergLP/balcl/OptionInfo.adoc[OptionInfo] const(& specTable)[], xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#