ICommand Interface

Represents a subcommand of the application.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public interface ICommand

Remarks

To create a subcommand for your application, create a class that implements this interface, then apply the CommandAttribute attribute to it.

The class will be used as an arguments type with the CommandLineParser. Alternatively, a command can implement its own argument parsing by implementing the ICommandWithCustomParsing interface.

Methods

Run Runs the command.

See Also