UsageWriter.CommandDescriptionColor Property

Gets or sets the color applied by the base implementation of the WriteCommandDescription(CommandInfo) method.

Definition

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

Property Value

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

Remarks

The color will only be used if the UseColor property is true; 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 UseColor property is true.

The portion of the string that has color will end with the ColorReset.

With the default value, only the command name portion of the string has color; the application name does not.

See Also