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

Create a command&hyphen;line object having the value of the specified `original` command line&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CommandLine(
    xref:BloombergLP/balcl/CommandLine.adoc[CommandLine] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

If the `original` is parsed, copy its value&semi; otherwise create an object such that parsing command&hyphen;line arguments results in the same value as parsing the same arguments with the `original`&period; 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 `original` is valid (i&period;e&period;, `original&period;isValid()` returns `true`)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| command&hyphen;line object to copy
| *basicAllocator*
| memory allocator (or 0 for the default)
|===


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