ParseOptionsUseErrorColor Property

Gets or sets a value that indicates whether error messages should use color.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
public bool? UseErrorColor { get; set; }

Property Value

NullableBoolean
to enable color output; to disable color output; or to enable it if the error output supports it.

Remarks

If this property is and the Error property is , the ParseWithErrorHandling method, the ParseT(String, Int32, ParseOptions) method and the CommandManager class will determine if color is supported using the EnableColor(StandardStream) method for the standard error stream.

If this property is set to explicitly, virtual terminal sequences may be included in the output even if it's not supported, which may lead to garbage characters appearing in the output.

See Also