Create a command-line option from the specified optionInfo.
Declared in <balcl_option.h>
explicit
Option(
OptionInfo const& optionInfo,
bslma::Allocator* basicAllocator = 0);
Create a command-line option containing the value of the specified optionInfo. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
| Name | Description |
|---|---|
| optionInfo | option descriptor providing the value |
| basicAllocator | memory allocator; null uses the default |