Méthode | Description | |
---|---|---|
DescribeOptions ( ) : void |
Prints out a description of the options and thier parameters.
|
|
ListOptions ( ) : string |
Returns a string describing the available command line options.
|
|
Option ( string name, string description ) : System |
Constructs a Option instance for an option that does not have a parameter.
|
|
Option ( string name, string description, string parameter ) : System |
Constructs a Option instance for an option that has an associated parameter value (e.g. -output <file>).
|
|
ProcessArguments ( string arguments ) : string[] |
Processes the command line arguments to extract options and parameter values.
|
|
ToString ( ) : string |
Converts the instance data members to a string representation that can be displayed for debugging purposes.
|
Méthode | Description | |
---|---|---|
ToDebug ( ) : string |
Converts the instance's member values to string representations and concatenates them all together. This function is used by ToString and my be overwritten in derived classes.
|
public Option ( string name, string description ) : System | ||
name | string | The name of the option (e.g. -help). |
description | string | A description of the options purpose. |
Résultat | System |
public Option ( string name, string description, string parameter ) : System | ||
name | string | The name of the option (e.g. -output). |
description | string | A description of the options purpose. |
parameter | string | A description of the required parameter or /// null if none allowed. |
Résultat | System |
public static ProcessArguments ( string arguments ) : string[] | ||
arguments | string | The command line arguments pass to Main |
Résultat | string[] |