AddMutuallyExclusive(TCommand, String[]) Method

Definition

Assembly XenoAtom.CommandLine.dll

Declares that the specified options cannot be used together.

public static TCommand AddMutuallyExclusive<TCommand>(this TCommand command, params string[] optionNames)
    where TCommand : CommandContainer

Type parameters

TCommand
Type of the command container.

Parameters

command
{TCommand}

The command container.

optionNames
String[]

Two or more option names (without prefix).

Returns

{TCommand}
The command container.