Table of Contents

CliResult.IsCalled Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

IsCalled<TDefinition>()

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

public bool IsCalled<TDefinition>()

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(Type)

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

public bool IsCalled(Type definitionType)

Parameters

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