Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.CommandLine.IncompatibleCommandOrOptionException

Summary

Specifies that the command-line parser encountered a command or option that is not allowed in conjunction with a previously-encountered command or option.

Instance methods

ConsoleColoredString
GenerateErrorText(Translation tr, int? wrapWidth = null)
Generates a printable description of the error represented by this exception, typically used to tell the user what they did wrong.
stringReturns the translated exception message.
ConsoleColoredString
GetUsageInfo(TranslationBase applicationTr = null, Translation tr = null, Func<ConsoleColoredString, ConsoleColoredString> helpProcessor = null)
Generates and returns usage information, followed by an error message describing to the user what it was that the parser didn't understand.
void
WriteUsageInfoToConsole(TranslationBase applicationTr = null, Translation tr = null, Func<ConsoleColoredString, ConsoleColoredString> helpProcessor = null)
Prints usage information, followed by an error message describing to the user what it was that the parser didn't understand.

Instance properties

string The earlier option or command, which by itself is valid, but conflicts with the IncompatibleCommandOrOptionException.LaterCommandOrOption.
Func<Translation, ConsoleColoredString>Contains the error message that describes the cause of this exception.
stringThe later option or command, which conflicts with the IncompatibleCommandOrOptionException.EarlierCommandOrOption.