UsageWriterWriteDefaultValue Method

Writes the default value of an argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected virtual void WriteDefaultValue(
	Object defaultValue
)

Parameters

defaultValue  Object
The default value.

Remarks

The base implementation writes a string like " Default value: value.", including the leading space.

This method is called by the base implementation of the WriteArgumentDescriptionBody(CommandLineArgument) method if the IncludeDefaultValueInDescription property is and the CommandLineArgumentDefaultValue property is not .

See Also