-
Home
-
API
-
XenoAtom.CommandLine
-
CommandExtensions
-
Methods
-
AddMutuallyExclusive(TCommand, String[])
AddMutuallyExclusive(TCommand, String[]) Method
Definition
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.