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.

Members

Functions

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

Executes the actual action.

prepare
void prepare(CommandArgs args)

Parses all known command line options without executing any actions.

prepareDub
Dub prepareDub(CommonOptions options)

Initialize the dub instance used by execute

Variables

acceptsAppArgs
bool acceptsAppArgs;
Undocumented in source.
argumentsPattern
string argumentsPattern;
Undocumented in source.
description
string description;
Undocumented in source.
helpText
string[] helpText;
Undocumented in source.
hidden
bool hidden;
Undocumented in source.
name
string name;
Undocumented in source.

Meta