Argument.this

Constructs an argument.

class Argument
@safe
this
(
string name
,,,,
string defaultValue = null
)

Parameters

name string

Name of the argument, must be non-empty.

required bool

Whether the argument is required.

variadic bool

Whether the argument accepts multiple values.

description string

Description of the argument.

defaultValue string

Default value, or null.

Throws

AssertionError if name is empty, or if argument is required and default value is not null.