ParseOptionsShowUsageOnError Property

Gets or sets a value that indicates how usage is shown after a parsing error occurred.

Definition

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

Property Value

UsageHelpRequest
One of the values of the UsageHelpRequest enumeration. The default value is UsageHelpRequestSyntaxOnly.

Remarks

Only the parsing methods that automatically handle errors will use this property.

If the value of this property is not UsageHelpRequestFull, the message returned by the UsageWriterWriteMoreInfoMessage method is written instead of the omitted parts of the usage help.

See Also