Method | Description | |
---|---|---|
CommandLineParser ( object argTarget, |
Initializes a new instance of the CommandLineParser class. Provides a resource reader for localization of the command line arguments. String specified in the command line attributes are used to look up corresponding localized strings in the resources. Also provides flags to control parsing.
|
|
GetArgumentString ( ) : string |
Gets all set arguments in the target as a valid command line string
|
|
GetUsage ( string command ) : string |
Gets the usage string for a specific command.
|
|
GetUsage ( string command, int lineLength ) : string |
Gets the usage string for a specific command.
|
|
ParseAndSetTarget ( IEnumerable |
Parses the supplied command line arguments and sets the target objects properties.
|
Method | Description | |
---|---|---|
ExternalGetString ( string s ) : string | ||
GetCommandHelpLines ( int lineLength, StringBuilder helpText ) : void | ||
GetDefaultArgumentValueHint ( string command ) : string | ||
GetDescriptionHelpLines ( string command, int lineLength, StringBuilder helpText ) : void | ||
GetExampleHelpLines ( int lineLength, StringBuilder helpText ) : void | ||
GetSwitchesHelpLines ( string command, int lineLength, StringBuilder helpText ) : void | ||
GetSyntaxHelpLine ( string command, StringBuilder helpText ) : void | ||
GetUnprocessedArgumentValueHint ( string command ) : string | ||
HasArguments ( string command ) : bool | ||
IsValidArgumentForCommand ( CommandLineArgument argument, string command ) : bool |
Is the argument valid of for this command?
|
|
IsValidCommand ( string command ) : bool |
Is this a valid command.
|
|
LazyGenerateCommandArguments ( ) : void |
public CommandLineParser ( object argTarget, |
||
argTarget | object | The |
resourceReaderType | A resource reader object with a GetString method |
|
flags | CommandLineParserFlags | See |
return | System |
public GetUsage ( string command ) : string | ||
command | string | The command for which to obtain usage. Pass |
return | string |
public GetUsage ( string command, int lineLength ) : string | ||
command | string | The command for which to obtain usage. Pass |
lineLength | int |
/// Number of columns to format the output for. Pass |
return | string |
public ParseAndSetTarget ( IEnumerable |
||
argStrings | IEnumerable |
|
return | void |