ParseOptionsErrorColor Property

Gets or sets the color applied to error messages.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.0.0
C#
public string ErrorColor { get; set; }

Property Value

String
The virtual terminal sequence for a color. The default value is ForegroundRed.

Remarks

The color will only be used if the UseErrorColor property is ; otherwise, it will be replaced with an empty string.

If the string contains anything other than virtual terminal sequences, those parts will be included in the output, but only when the UseErrorColor property is .

After the error message, the value of the ColorReset property will be written to undo the color change.

See Also