LocalizedStringProviderUsageDefaultValue Method

Gets the text to use to display a default value in the usage help, used by the UsageWriter class.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public virtual string UsageDefaultValue(
	Object defaultValue,
	IFormatProvider formatProvider
)

Parameters

defaultValue  Object
The argument's default value.
formatProvider  IFormatProvider
An object that provides culture-specific format information for the default value. This will be the value of the Culture property, to ensure the format used matches the format used when parsing arguments.

Return Value

String
The string.

See Also