ICommandLineConventionContext.

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

Summary

Adds the command.

Syntax

CommandLineApplication AddCommand(string name, Action<CommandLineApplication> action = null, bool throwOnUnexpectedArg = true)

Attributes

Type Description
NotNullAttribute

Parameters

Name Type Description
name string The name.
action Action<CommandLineApplication> The action.
throwOnUnexpectedArg bool if set to true [throw on unexpected argument].

Return Value

Type Description
CommandLineApplication CommandLineApplication.