Documentation for the C# command-line option parsing library |
|
UsageBuilder.ToText Method (TextWriter, OptStyle, Boolean, Int32)
Convert the usage to Text
Parameters
-
writer
- TextWriter to write the output to
-
optStyle
- The style to use when printing possible option names
-
includeDefaultValues
- True to include the default option values in the output
-
maxColumns
- Wrap text at the given column (attempts to wrap at '-' or ' ')
Remarks
if maxColumns is -1, the width of the console will be used on windows machines, and the text will not be wrapped on non-windows machines
See Also
UsageBuilder Class | CommandLine.OptParse Namespace | UsageBuilder.ToText Overload List