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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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