ParseOptionsError Property

Gets or sets the TextWriter used to print error information if argument parsing fails.

Definition

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

Property Value

TextWriter
The TextWriter used to print error information, or to print to a LineWrappingTextWriter for the standard error stream (ConsoleError). The default value is .

Remarks

Only the parsing methods that automatically handle errors will use this property.

If argument parsing is successful, nothing will be written.

See Also