ICommandLineBuilder.

AddCommand<T>(Action<CommandLineApplication<T>>, bool) Method

Summary

Adds the command.

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<CommandLineApplication<T>> The action.
throwOnUnexpectedArg bool if set to true [throw on unexpected argument].

Return Value

Type Description
CommandLineApplication<T> CommandLineApplication{T}.