CommandManager(CommandProvider, CommandOptions) Constructor

Initializes a new instance of the CommandManager class using the specified CommandProvider.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected CommandManager(
	CommandProvider provider,
	CommandOptions? options = null
)

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.

Remarks

This constructor supports source generation, and should not typically be used directly by application code.

  Note

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.

See Also