Option.this

Constructs an option.

class Option
@safe
this
(
string shortName
,
string longName
,
string paramName
,,,
string defaultValue = null
)

Parameters

shortName string

Single-character short name, or null.

longName string

Long name, or null.

paramName string

Name of the parameter.

description string

Description of the option.

required bool

Whether the option is required.

defaultValue string

Default value of the parameter, or null.

Throws

AssertionError if option is required and default value is not null.