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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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