Add(TCommand, String, Action<String?>) Method

Definition

Assembly XenoAtom.CommandLine.dll

Adds an option to this command container.

public static TCommand Add<TCommand>(this TCommand command, string prototype, Action<string?> action)
    where TCommand : CommandContainer

Type parameters

TCommand
Type of the command container.

Parameters

command
{TCommand}

The command to add the action to.

prototype
String

The prototype of the option. E.g "v|version".

action
Action<String?>

The associated action

Returns

{TCommand}
The command container.