Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.CommandLine.UnrecognizedCommandOrOptionException

Summary

Specifies that the command-line parser encountered a command or option that was not recognised (there was no OptionAttribute or CommandNameAttribute attribute with a matching option or command name).

Constructors

UnrecognizedCommandOrOptionException(string commandOrOptionName, Func<int, ConsoleColoredString> helpGenerator, Exception inner = null)
Specifies that the command-line parser encountered a command or option that was not recognised (there was no OptionAttribute or CommandNameAttribute attribute with a matching option or command name).

Instance methods

ConsoleColoredString
GenerateErrorText(int? wrapWidth = null)
Generates a printable description of the error represented by this exception, typically used to tell the user what they did wrong.
ConsoleColoredString
GenerateHelp(int? wrapWidth = null)
Generates the help screen to be output to the user on the console.
ConsoleColoredString Generates and returns usage information, followed by an error message describing to the user what it was that the parser didn't understand.
void Prints usage information, followed by an error message describing to the user what it was that the parser didn't understand.

Instance properties

ConsoleColoredStringContains the error message that describes the cause of this exception.
stringThe unrecognized command name or option name.