UnknownArgumentEventArgsCancelParsing Property

Gets or sets a value that indicates whether parsing should be canceled when the event handler returns.

Definition

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

Property Value

CancelMode
One of the values of the CancelMode enumeration. The default value is CancelModeNone.

Remarks

If the event handler sets this property to a value other than CancelModeNone, command line processing will stop immediately, returning either or an instance of the arguments class according to the CancelMode value.

If you want usage help to be displayed after canceling, set the CommandLineParserHelpRequested property to .

See Also