Table of Contents

Cli.GetParser Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

GetParser<TDefinition>(CliSettings)

Gets a CLI parser configured for the indicated command.

public static CliParser GetParser<TDefinition>(CliSettings settings = null)

Parameters

settings CliSettings

The settings for the parser's grammar and behaviors.

Returns

CliParser

A CliParser for the indicated command with grammar and behaviors.

Type Parameters

TDefinition

The definition class for the command. A command builder for this class should be automatically generated by the source generator.

GetParser(Type, CliSettings)

Gets a CLI parser configured for the indicated command.

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

The settings for the parser's grammar and behaviors.

Returns

CliParser

A CliParser for the indicated command with grammar and behaviors.