CliCommandBuilderGetValueForArgument(ParseResult, CliArgument) Method
Gets the parsed or default value for the specified argument.
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: 1.8.8
public static Object GetValueForArgument(
ParseResult parseResult,
CliArgument argument
)
- parseResult ParseResult
- The parse result.
- argument CliArgument
- The argument for which to get a value.
ObjectThe parsed value or a configured default.