CliGetParser(Type, CliSettings) Method

Gets a CLI parser configured for the indicated command.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.6
C#
public static CliParser GetParser(
	Type definitionType,
	CliSettings settings = null
)

Parameters

definitionType  Type
The definition class type for the command. A command builder for this class should be automatically generated by the source generator.
settings  CliSettings  (Optional)
The settings for the parser's grammar and behaviors.

Return Value

CliParser
A CliParser for the indicated command with grammar and behaviors.

See Also