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)

Creates new argument.

Members

Functions

displayName
string displayName()

Gets argument display name (tag or name).

tag
string tag()

Argument tag

tag
typeof(this) tag(string tag)

Sets argument tag.

Mixins

__anonymous
mixin EntryImpl
Undocumented in source.

Mixed In Members

From mixin EntryImpl

name
typeof(this) name(string name)
name
string name()
description
typeof(this) description(string description)
description
string description()
repeating
typeof(this) repeating(bool repeating)
isRepeating
bool isRepeating()
required
typeof(this) required(bool required)
optional
typeof(this) optional(bool optional)
isRequired
bool isRequired()
defaultValue
typeof(this) defaultValue(string defaultValue)
defaultValue
typeof(this) defaultValue(string[] defaultValue)
defaultValue
string[] defaultValue()
validate
typeof(this) validate(IValidator validator)
validators
IValidator[] validators()

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)

Sets whenever entry can be repeated.

isRepeating
bool isRepeating()

Gets whenever entry can be repeated.

required
typeof(this) required(bool required)

Sets entry required flag.

optional
typeof(this) optional(bool optional)

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