ArgumentParsedEventArgsCancelParsing Property

Gets 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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public CancelMode CancelParsing { get; set; }

Property Value

CancelMode
One of the values of the CancelMode enumeration. The default value is the value of the CommandLineArgumentAttributeCancelParsing property, or the return value of a method argument.

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