UsageWriterWriter Property

Gets the LineWrappingTextWriter to which the usage should be written.

Definition

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

Property Value

LineWrappingTextWriter
The LineWrappingTextWriter passed to the UsageWriter(LineWrappingTextWriter, NullableBoolean) constructor, or an instance created by the LineWrappingTextWriterForConsoleOut or LineWrappingTextWriterForStringWriter(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