if (cli.hasOption(CommandLineParam.QUIET.toString())) {
logThreshold = "ERROR";
}
System.setProperty("consoleLogThreshold", logThreshold);
CommandLineParam option = null;
for (Option opt : cli.getOptions()) {
option = CommandLineParam.TOP_LEVEL_COMMANDS.get(opt.getOpt());
if (option != null) {
break;
}
}
if (option != null) {
option.getCommand(commandFactory, cli).execute();
} else {
throw new CommandLineSyntaxException(
"No command line options specified (use -h to see all available options)");
}
} catch (ParseException pe) {