UsageWriter.Writer Property

Gets the LineWrappingTextWriter to which the usage should be written.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.0.0
C#
protected LineWrappingTextWriter Writer { get; }

Property Value

LineWrappingTextWriter
The LineWrappingTextWriter passed to the UsageWriter(LineWrappingTextWriter, Nullable<Boolean>) constructor, or an instance created by the ForConsoleOut() or ForStringWriter(Int32, IFormatProvider, Boolean) function.

Exceptions

InvalidOperationException No LineWrappingTextWriter was passed to the constructor, and a WriteParserUsage(CommandLineParser, UsageHelpRequest) operation is not in progress.

See Also