Class CmdLineTool
Base class for all command line tools.
public abstract class CmdLineTool
- Inheritance
-
CmdLineTool
- Derived
- Inherited Members
Properties
HasParams
Whether the tool has any command line parameters.
public virtual bool HasParams { get; }
Property Value
Name
The name of the tool, used as the command. Must not contain white spaces.
public virtual string Name { get; }
Property Value
ShortDescription
A short description of what the tool does, shown in the usage listing.
public virtual string ShortDescription { get; }
Property Value
Methods
CreateCommand(string)
Builds the command that parses this tool's arguments and runs it.
public abstract Command CreateCommand(string commandName)
Parameters
commandNamestringthe name the user typed, which for a typed tool includes the
.formatsuffix and so is not always Name
Returns
GetHelp()
A description of how to use the tool.
public abstract string GetHelp()