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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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