* Parse the command line arguments.
*/
public void parseArgs(String[] args) throws WSIException
{
// Get new config reader
MonitorConfigReader monitorConfigReader = new MonitorConfigReaderImpl();
// Monitor config object which will be merged after all of the input parms are processed
MonitorConfig monitorConfigFromArgs = null;
// If no input arguments, then throw exception
if (args.length == 0)
{
// ADD:
throw new IllegalArgumentException(
getMessage("usage01", Monitor.USAGE_MESSAGE));
}
// Parse the command line arguments to locate the config file option (if it was specified)
for (int argCount = 0; argCount < args.length; argCount++)
{
// -configFile
if ((args[argCount].equalsIgnoreCase("-config"))
|| (args[argCount].equals("-c")))
{
argCount++;
monitorConfigFromArgs =
monitorConfigReader.readMonitorConfig(args[argCount]);
}
}
// If config file was not specified, then create analyzer config object
if (monitorConfigFromArgs == null)