CliCommandBuilderGetValueForDirectiveT(ParseResult, Directive) Method
Gets the parsed or default value for the specified directive.
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.
Namespace: DotMake.CommandLineAssembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.5.0
public static T GetValueForDirective<T>(
ParseResult parseResult,
Directive directive
)
- parseResult ParseResult
- The parse result.
- directive Directive
- The directive for which to get a value.
- T
- The option type.
TThe parsed value or a configured default.