Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.CommandLine.MissingParameterException

Summary

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

Constructors

MissingParameterException(FieldInfo paramField, FieldInfo beforeField, bool isOption, Func<int, ConsoleColoredString> helpGenerator, Exception inner = null)
Specifies that the command-line parser encountered the end of the command line when it expected additional mandatory options.

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

FieldInfoContains an optional reference to a field which the missing parameter must precede.
ConsoleColoredStringContains the error message that describes the cause of this exception.
FieldInfoContains the field pertaining to the parameter that was missing.
bool Specifies whether the missing parameter was a missing option (true) or a missing positional parameter (false).