Constructor Summary
Public Constructor | ||
public |
constructor(descOrOptions: string | Option.Options) Creates a new option based on a description or some options. |
Member Summary
Public Members | ||
public |
The alias to use for the option. |
|
public |
A short string describing the option. |
|
public get |
Whether or not the option requires a value to be passed. |
|
public |
The option's type. One of OptionType. |
Method Summary
Public Methods | ||
public |
parsedValue(value: string): * Casts the given value to the appropriate type. |
Public Constructors
public constructor(descOrOptions: string | Option.Options) source
Creates a new option based on a description or some options. If a string is passed Option#type is set to OptionType.Boolean by default.
Params:
Name | Type | Attribute | Description |
descOrOptions | string | Option.Options | The description or options used to create the Option. |