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