GeneratedCommandInfo Constructor
Namespace: Ookii.CommandLine.SupportAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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.