ICommand Interface

Represents a subcommand of the application.

Definition

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