CliCommandBuilderGetValueForDirective(ParseResult, Directive) Method

Gets the parsed or default value for the specified option.

Extended version for DotMake CLI which can bind custom classes, does not fall back to internal ArgumentConverter.GetDefaultValue which does not support all IList compatible types.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.5.0
C#
public static Object GetValueForDirective(
	ParseResult parseResult,
	Directive directive
)

Parameters

parseResult  ParseResult
The parse result.
directive  Directive

[Missing <param name="directive"/> documentation for "M:DotMake.CommandLine.CliCommandBuilder.GetValueForDirective(System.CommandLine.ParseResult,System.CommandLine.Directive)"]

Return Value

Object
The parsed value or a configured default.

See Also