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: 3.1.1
C#
public UsageHelpRequest ShowUsageOnError { get; set; }

Property Value

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

Remarks

If the value of this property is not Full, the ParseWithErrorHandling method, the ParseT(String, Int32, ParseOptions) method and the CommandManager class will write the message returned by the WriteMoreInfoMessage method instead of usage help.

See Also