Documentation for the C# command-line option parsing library

DefaultUsageInfo Constructor (String, String, Boolean, String[])

Constructor to make argument description construction easier

public DefaultUsageInfo(
   string programName,
   string description,
   bool upperCase,
   params string[] argumentDescription
);

Parameters

programName
The name of the program (something.exe)
description
Description of the program
upperCase
True to use all-upper case headers, or false for title cased headers
argumentDescription
list of descriptions in the format of { "Argument", "Description" [, "Argument", "Description"] ...}

Remarks

The argumentDescriptions array should be an even length. The event indexes (0, 2, 4, etc.) should be the argument names, and the odd indexes are the descriptions of the names (1, 3, etc. where 1 is the description of 0, 3 of 2, etc.).

Example:

new DefaultUsageInfo("HelloWorld.exe", "Says hello world with the arguments",
"Additional text", "Text to print after saying hello world");

See Also

DefaultUsageInfo Class | CommandLine.OptParse Namespace | DefaultUsageInfo Constructor Overload List