ArgumentValidationAttribute.GetUsageHelp Method

Gets the usage help message for this validator.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public virtual string? GetUsageHelp(
	CommandLineArgument argument
)

Parameters

argument  CommandLineArgument
The argument that the validator is for.

Return Value

String
The usage help message, or null if there is none. The base implementation always returns null.

Remarks

This function is only called if the UsageWriter.IncludeValidatorsInDescription property is true.

See Also