AddRemainder(TCommand, String?) Method

Definition

Assembly XenoAtom.CommandLine.dll

Adds a remainder positional argument (<>) to this command container. All remaining arguments are forwarded to the command action callback.

public static TCommand AddRemainder<TCommand>(this TCommand command, string? description = null)
    where TCommand : CommandContainer

Type parameters

TCommand
Type of the command container.

Parameters

command
{TCommand}

The command container.

description
String

The help description for this remainder argument.

Returns

{TCommand}
The command container.