Command

Base class for all commands.

This cass contains a high-level description of the command, including brief and full descriptions and a human readable command line pattern. On top of that it defines the two main entry functions for command execution.

class Command {
string name;
string argumentsPattern;
string description;
string[] helpText;
bool acceptsAppArgs;
bool hidden;
bool skipDubInitialization;
}

Members

Functions

execute
int execute(Dub dub, string[] free_args, string[] app_args)

Executes the actual action.

prepare
void prepare(scope CommandArgs args)

Parses all known command line options without executing any actions.

Meta