Documentation for the C# command-line option parsing library

Parser.PrintUsage Method (OptStyle, IProgUsageInfo, Int32)

NOTE: This method is now obsolete.

Use UsageBuilder instead


Prints out the usage of this program to the given text writer

public void PrintUsage(
   OptStyle optStyle,
   IProgUsageInfo usageInfo,
   int columns
);

Parameters

optStyle
The style of the options to have printed in the usage
usageInfo
columns
The number of columns to print before wrapping the text. Used to correctly format the indenting

Remarks

Prints the usage to the standard output. See IProgUsageInfo and GetOptionDescriptions for more information on how the usage is printed.

At this time, wrapping is not done at word boundries

See Also

Parser Class | CommandLine.OptParse Namespace | Parser.PrintUsage Overload List | IProgUsageInfo | DefaultUsageInfo | GetOptionDescriptions