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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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