UsageWriterWriteSwitchValueDescription Method

Writes the value description of a switch argument for use in the argument description list.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected virtual void WriteSwitchValueDescription(
	string valueDescription
)

Parameters

valueDescription  String
The value description.

Remarks

The default implementation surrounds the value written by the WriteValueDescriptionForDescription(String) method with square brackets, to indicate that it is optional.

This method is called by the base implementation of the WriteArgumentDescriptionHeader(CommandLineArgument) method for switch arguments.

See Also