AddRequires(TCommand, String, String[]) Method

Definition

Assembly XenoAtom.CommandLine.dll

Declares that when optionName is present, all requiredOptionNames must also be present.

public static TCommand AddRequires<TCommand>(this TCommand command, string optionName, params string[] requiredOptionNames)
    where TCommand : CommandContainer

Type parameters

TCommand
Type of the command container.

Parameters

command
{TCommand}

The command container.

optionName
String

The option that triggers the requirement (without prefix).

requiredOptionNames
String[]

One or more required option names (without prefix).

Returns

{TCommand}
The command container.