GeneratedCommandInfo Constructor

Initializes a new instance of the GeneratedCommandInfo class.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public GeneratedCommandInfo(
	CommandManager manager,
	Type commandType,
	CommandAttribute attribute,
	DescriptionAttribute? descriptionAttribute = null,
	IEnumerable<AliasAttribute>? aliasAttributes = null,
	Func<ParseOptions?, CommandLineParser>? createParser = null,
	Type? parentCommandType = null
)

Parameters

manager  CommandManager
The command manager.
commandType  Type
The type of the command.
attribute  CommandAttribute
The CommandAttribute.
descriptionAttribute  DescriptionAttribute  (Optional)
The DescriptionAttribute.
aliasAttributes  IEnumerableAliasAttribute  (Optional)
A collection of AliasAttribute values.
createParser  FuncParseOptions, CommandLineParser  (Optional)
A delegate that creates a command line parser for the command when invoked.
parentCommandType  Type  (Optional)
The type of the parent command.

See Also