CliCommandBuilderBind Method

Creates a new instance of the command definition class and binds/populates the properties from the parse result. Note that binding will be done only once, so calling this method consecutively will return the cached result.

If the command line input is not for this definition class (e.g. it's for a sub-command but not for this root command or vice versa), then the returned instance would be empty (i.e. properties would have default values).

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.8
C#
public Object Bind(
	ParseResult parseResult
)

Parameters

parseResult  ParseResult
A parse result describing the outcome of the parse operation.

Return Value

Object
An instance of the definition class whose properties were bound/populated from the parse result.

See Also