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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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