CliBindingContext.Contains Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Contains<TDefinition>(ParseResult)
Checks if the command line input contains the indicated definition class (as self or as a parent).
public bool Contains<TDefinition>(ParseResult parseResult)
Parameters
parseResultParseResultA parse result describing the outcome of the parse operation.
Returns
Type Parameters
TDefinitionThe definition class for the command. A command builder for this class should be automatically generated by the source generator.
Contains(ParseResult, Type)
Checks if the command line input contains the indicated definition class (as self or as a parent).
public bool Contains(ParseResult parseResult, Type definitionType)
Parameters
parseResultParseResultA parse result describing the outcome of the parse operation.
definitionTypeTypeThe definition class type for the command. A command builder for this class should be automatically generated by the source generator.