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).
Namespace: DotMake.CommandLineAssembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.8
public Object Bind(
ParseResult parseResult
)
- parseResult ParseResult
- A parse result describing the outcome of the parse operation.
ObjectAn instance of the definition class whose properties were bound/populated from the parse result.