Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.CommandLine.UnexpectedArgumentException

Summary

Specifies that the command-line parser encountered additional command-line arguments when it expected the end of the command line.

Constructors

UnexpectedArgumentException(string[] unexpectedArgs, Func<int, ConsoleColoredString> helpGenerator, Exception inner = null)
Specifies that the command-line parser encountered additional command-line arguments when it expected the end of the command line.

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.
string[]Contains the first unexpected argument and all of the subsequent arguments.