CommandManager(CommandProvider, CommandOptions) Constructor
Namespace: Ookii.CommandLine.CommandsAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
protected CommandManager(
CommandProvider provider,
CommandOptions? options = null
)
Protected Sub New (
provider As CommandProvider,
Optional options As CommandOptions = Nothing
)
Dim provider As CommandProvider
Dim options As CommandOptions
Dim instance As New CommandManager(provider,
options)
protected:
CommandManager(
CommandProvider^ provider,
CommandOptions^ options = nullptr
)
Parameters
- provider CommandProvider
-
The CommandProvider that determines which commands are available.
- options CommandOptions (Optional)
-
The options to use for parsing and usage help, or to use
the default options.
This constructor supports source generation, and should not typically be used directly
by application code.
Once a command is created, the
options instance may be modified
with the options of the
ParseOptionsAttribute attribute applied to the
command class. Be aware of this if reusing the same
CommandManager or
CommandOptions instance to create multiple commands.