GeneratedCommandInfo Constructor
Namespace: Ookii.CommandLine.SupportAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
public GeneratedCommandInfo(
CommandManager manager,
Type commandType,
CommandAttribute attribute,
DescriptionAttribute? descriptionAttribute = null,
IEnumerable<AliasAttribute>? aliasAttributes = null,
Func<ParseOptions?, CommandLineParser>? createParser = null,
Type? parentCommandType = null
)
Public Sub New (
manager As CommandManager,
commandType As Type,
attribute As CommandAttribute,
Optional descriptionAttribute As DescriptionAttribute = Nothing,
Optional aliasAttributes As IEnumerable(Of AliasAttribute) = Nothing,
Optional createParser As Func(Of ParseOptions, CommandLineParser) = Nothing,
Optional parentCommandType As Type = Nothing
)
Dim manager As CommandManager
Dim commandType As Type
Dim attribute As CommandAttribute
Dim descriptionAttribute As DescriptionAttribute
Dim aliasAttributes As IEnumerable(Of AliasAttribute)
Dim createParser As Func(Of ParseOptions, CommandLineParser)
Dim parentCommandType As Type
Dim instance As New GeneratedCommandInfo(manager,
commandType, attribute, descriptionAttribute,
aliasAttributes, createParser, parentCommandType)
public:
GeneratedCommandInfo(
CommandManager^ manager,
Type^ commandType,
CommandAttribute^ attribute,
DescriptionAttribute^ descriptionAttribute = nullptr,
IEnumerable<AliasAttribute^>^ aliasAttributes = nullptr,
Func<ParseOptions^, CommandLineParser^>^ createParser = nullptr,
Type^ parentCommandType = nullptr
)
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.