Table of Contents

CliBindingContext.IsCalled Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

IsCalled<TDefinition>(ParseResult)

Checks if the command line input is for the indicated definition class.

public bool IsCalled<TDefinition>(ParseResult parseResult)

Parameters

parseResult ParseResult

A parse result describing the outcome of the parse operation.

Returns

bool

Type Parameters

TDefinition

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

IsCalled(ParseResult, Type)

Checks if the command line input is for the indicated definition class.

public bool IsCalled(ParseResult parseResult, Type definitionType)

Parameters

parseResult ParseResult

A parse result describing the outcome of the parse operation.

definitionType Type

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

Returns

bool