Commands

Manage command line arguments

Constructors

this
this(string introduction)

Create commands using the introduction when printing help

Members

Aliases

Completion
alias Completion = string[] delegate(string, string)
Undocumented in source.

Functions

add
void add(string command, COMMAND action, string description)

Add a new command given de name, the action to perform and a description

addCompletion
void addCompletion(string cmd, Completion completion)

Add completion option for this specific command

commands
string[] commands()

Return an array with all possible commands

completionOptions
string[] completionOptions(string cmd, string parameter)

Return completion options

defaultCompletion
void defaultCompletion(Completion completion)

Set default completion function

exists
bool exists(string cmd)

Is this command provided?

opIndex
COMMAND opIndex(string command)

Return COMMAND associated with command. If command does not exist then call return COMMAND associated with help. If neither exist fail.

toString
string toString()

Create help message

Meta