Summary
Adds the command.
- Assembly
- Rocket
.Surgery .Extensions .CommandLine .dll - Namespace
- Rocket
.Surgery .Extensions .CommandLine - Containing Type
- CommandLineBuilder
Syntax
public CommandLineApplication AddCommand(string name, Action<CommandLineApplication> action = null, bool throwOnUnexpectedArg = true)
Parameters
Name | Type | Description |
---|---|---|
name | string | The name. |
action | Action |
The action. |
throwOnUnexpectedArg | bool | if set to true [throw on unexpected argument]. |
Return Value
Type | Description |
---|---|
Command |
ICommandLineBuilder. |