Argument

User defined attribute for a positional argument.

Constructors

this
this(string name, size_t count)

Constructs an argument with the given name and count. The count specifies how many argument elements should be consumed from the command line. By default, this is 1.

this
this(string name, size_t lowerBound, size_t upperBound)

Constructs an argument with the given name and an upper and lower bound for how many argument elements should be consumed from the command line.

this
this(string name, Multiplicity multiplicity)

An argument with a multiplicity specifier.

Members

Properties

multiplicityError
size_t multiplicityError [@property setter]

Get a multiplicity error string.

usage
string usage [@property getter]

Convert to a usage string.

Variables

lowerBound
size_t lowerBound;

Lower and upper bounds for the number of values this argument can have.

name
string name;

Name of the argument. Since this is a positional argument, this value is only used in the help string.

upperBound
size_t upperBound;

Lower and upper bounds for the number of values this argument can have.

Meta