Method | Description | |
---|---|---|
GetErrorsAsString ( int width ) : string |
Gets the list of errors as a formatted string.
|
|
GetGroup ( string id ) : |
Gets the option group with the specified id.
|
|
GetHeaderAsString ( int width ) : string |
Gets a string consisting of the program name, version and copyright notice. This string is suitable for printing as the first output of a console application. |
|
GetOption ( string name ) : |
Gets the option with the specified name.
|
|
GetOptionsAsString ( int width ) : string |
Gets a formatted string describing the options and groups available.
|
|
GetOptionsAsString ( int nameColumnWidth, int descriptionColumnWidth ) : string |
Gets a string describing all the options of this option manager. Usable for displaying as a help message to the user, provided that descriptions for all options and groups are provided.
|
|
ToString ( ) : string |
Returns a This is equivalent to calling |
|
ToString ( int width ) : string |
Converts this UsageInfo instance to a string.
|
|
ToString ( int width, bool includeErrors ) : string |
Converts this UsageInfo instance to a string.
|
Method | Description | |
---|---|---|
UsageInfo ( IOption>.SCG |
Initializes a new instance of the UsageInfo class.
|
public GetErrorsAsString ( int width ) : string | ||
width | int | The width of the field in which to format the error list. |
return | string |
public GetGroup ( string id ) : |
||
id | string | The id of the option group to retrieve. |
return |
public GetHeaderAsString ( int width ) : string | ||
width | int | The total width in characters in which the string should be fitted |
return | string |
public GetOption ( string name ) : |
||
name | string | The name of the option to retrieve. |
return |
public GetOptionsAsString ( int width ) : string | ||
width | int | The maximum width of each line in the returned string. |
return | string |
public GetOptionsAsString ( int nameColumnWidth, int descriptionColumnWidth ) : string | ||
nameColumnWidth | int | The width in characters of the column holding the names of the options. |
descriptionColumnWidth | int | The width in characters of the column holding the descriptions of the options. |
return | string |
public ToString ( int width ) : string | ||
width | int | The width of the field (in characters) in which to format the usage description. |
return | string |
public ToString ( int width, bool includeErrors ) : string | ||
width | int | The width of the field (in characters) in which to format the usage description. |
includeErrors | bool | if set to |
return | string |