Argument

Represents a command-line argument.

Constructors

this
this(string name, bool required, bool variadic, string description, string defaultValue)

Constructs an argument.

Members

Functions

formattedName
string formattedName(bool colors)

Returns formatted name, e.g., "<file>" or "files...".

Static functions

fromString
Argument fromString(string format, string description, string defaultValue)

Creates an argument from a formatted string.

Variables

defaultValue
string defaultValue;

Default value of the argument, or null.

description
string description;

Description of the argument.

name
string name;

Name of the argument.

required
bool required;

Whether the argument is required.

variadic
bool variadic;

Whether the argument accepts multiple values.