Create a command‐line object having the value of the specified original command line.
Synopsis
Declared in <balcl_commandline.h>
CommandLine(
CommandLine const& original,
bslma::Allocator* basicAllocator = 0);
Description
If the original is parsed, copy its value; otherwise create an object such that parsing command‐line arguments results in the same value as parsing the same arguments with the original. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless original is valid (i.e., original.isValid() returns true).
Parameters
Name |
Description |
original |
command‐line object to copy |
basicAllocator |
memory allocator (or 0 for the default) |
Created with MrDocs