Argument

Represents an argument.

Arguments are positional parameters passed to program and are required by default. Only last argument can be repeating or optional.

Constructors

this
this(string name, string description = null)

Creates new argument.

Members

Functions

displayName
string displayName()

Gets argument display name (tag or name).

tag
typeof(this) tag(string tag)

Sets argument tag.

tag
string tag()

Argument tag

Inherited Members

From IEntry

name
typeof(this) name(string name)

Sets entry name.

name
string name()

Entry name.

displayName
string displayName()

Display name for entry.

description
typeof(this) description(string description)

Sets entry help description (one-liner).

description
string description()

Entry help description (one-liner).

repeating
typeof(this) repeating(bool repeating = true)

Sets whenever entry can be repeated.

isRepeating
bool isRepeating()

Gets whenever entry can be repeated.

required
typeof(this) required(bool required = true)

Sets entry required flag.

optional
typeof(this) optional(bool optional = true)

Sets entry optional flag.

isRequired
bool isRequired()

Whenever entry is required.

defaultValue
typeof(this) defaultValue(string defaultValue)

Sets entry default value.

defaultValue
typeof(this) defaultValue(string[] defaultValue)

Sets entry default value array.

defaultValue
string[] defaultValue()

Entry default value array.

validate
typeof(this) validate(IValidator validator)

Adds entry validator.

validators
IValidator[] validators()

Entry validators.

Meta