ICommandWithCustomParsing Interface

Represents a subcommand that does its own argument parsing.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public interface ICommandWithCustomParsing : ICommand
Implements
ICommand

Remarks

Unlike commands that only implement the ICommand interface, commands that implement the ICommandWithCustomParsing interface are not created with the CommandLineParser class. Instead, they must have a public constructor with no parameters, and must parse the arguments manually by implementing the Parse(ReadOnlyMemory<String>, CommandManager) method.

Methods

Parse Parses the arguments for the command.
Run Runs the command.
(Inherited from ICommand)

See Also