ICommand Interface

Represents a subcommand of the application.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
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