Method | Description | |
---|---|---|
CommandLineParser ( IEnumerable |
Constructs a command line parser
|
|
ParseArguments ( string commandLineArgs, ILogger logger, IEnumerable |
Parses the supplied arguments. Logs errors for unrecognized, duplicate or missing arguments.
|
Method | Description | |
---|---|---|
CheckRequiredArgumentsSupplied ( IEnumerable |
Checks whether any required arguments are missing and logs error messages for them.
|
|
IdExists ( string id, IEnumerable |
||
TryGetMatchingDescriptor ( string argument, SonarQube.Common.ArgumentDescriptor &descriptor, string &prefix ) : bool |
Attempts to find a descriptor for the current argument
|
|
TryGetMatchingPrefix ( SonarQube.Common.ArgumentDescriptor descriptor, string argument ) : string |
public CommandLineParser ( IEnumerable |
||
descriptors | IEnumerable |
List of descriptors that specify the valid argument types |
allowUnrecognized | bool | True if unrecognized arguments should be ignored |
return | System |
public ParseArguments ( string commandLineArgs, ILogger logger, IEnumerable |
||
commandLineArgs | string | |
logger | ILogger | |
argumentInstances | IEnumerable |
A list of argument instances that have been recognized |
return | bool |