Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.CommandLine.InvalidOrderOfPositionalParametersException

Summary

Indicates that a mandatory positional parameter is defined to come after an optional positional parameter, which is not possible.

Constructors

InvalidOrderOfPositionalParametersException(FieldInfo fieldOptional, FieldInfo fieldMandatory, Func<int, ConsoleColoredString> helpGenerator, Exception inner = null)
Indicates that a mandatory positional parameter is defined to come after an optional positional parameter, which is not possible.

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.
FieldInfoContains the name of the mandatory positional parameter that followed an optional positional parameter.
FieldInfoContains the name of the optional positional parameter that was followed by a mandatory positional parameter.