UsageWriterIncludeValidatorsInDescription Property

Gets or sets a value indicating whether the ArgumentValidationAttribute attributes of an argument should be included in the argument description.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool IncludeValidatorsInDescription { get; set; }

Property Value

Boolean
if the validator descriptions should be included in; otherwise, . The default value is .

Remarks

For arguments with no validators, or validators with no usage help, this property has no effect.

For validators derived from the ArgumentValidationWithHelpAttribute class, you can use the IncludeInUsageHelp property to exclude the help text for individual validators.

See Also