Cli.GetParser Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
GetParser<TDefinition>(CliSettings)
Gets a CLI parser configured for the indicated command.
public static CliParser GetParser<TDefinition>(CliSettings settings = null)
Parameters
settingsCliSettingsThe settings for the parser's grammar and behaviors.
Returns
Type Parameters
TDefinitionThe definition class for the command. A command builder for this class should be automatically generated by the source generator.
GetParser(Type, CliSettings)
Gets a CLI parser configured for the indicated command.
public static CliParser GetParser(Type definitionType, CliSettings settings = null)
Parameters
definitionTypeTypeThe definition class type for the command. A command builder for this class should be automatically generated by the source generator.
settingsCliSettingsThe settings for the parser's grammar and behaviors.