Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ParseErrorAction Class

Definition

Namespace:
System.CommandLine.Invocation
Assembly:
System.CommandLine.dll
Package:
System.CommandLine v3.0.0-preview.5.26302.115
Source:
ParseErrorAction.cs
Source:
ParseErrorAction.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides command-line output with error details in the case of a parsing error.

public ref class ParseErrorAction sealed : System::CommandLine::Invocation::SynchronousCommandLineAction
public sealed class ParseErrorAction : System.CommandLine.Invocation.SynchronousCommandLineAction
type ParseErrorAction = class
 inherit SynchronousCommandLineAction
Public NotInheritable Class ParseErrorAction
Inherits SynchronousCommandLineAction
Inheritance

Constructors

Name Description
ParseErrorAction()

Properties

Name Description
ClearsParseErrors

Indicates that the action clears any parse errors associated with symbols other than one that owns the CommandLineAction.

(Inherited from CommandLineAction)
ShowHelp

Gets or sets a value that indicates whether to show help along with error details when an error is found during parsing.

ShowTypoCorrections

Gets or sets a value that indicates whether to show typo suggestions along with error details when an error is found during parsing.

Terminating

Indicates that the action terminates a command line invocation, and later actions are skipped.

(Inherited from CommandLineAction)

Methods

Name Description
Invoke(ParseResult)

Performs an action when the associated symbol is invoked on the command line.

Applies to


Feedback

Was this page helpful?