ParseOptionsWarningColor Property

Gets or sets the color applied to warning messages.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public TextFormat WarningColor { get; set; }

Property Value

TextFormat
The virtual terminal sequence for a color. The default value is TextFormatForegroundYellow.

Remarks

Only the parsing methods that automatically handle errors will use this property.

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

This color is used for the warning emitted if the DuplicateArguments property is ErrorModeWarning.

After the warning message, the value of the UsageWriterColorReset property will be written to undo the color change.

See Also