throw new UserError("Error parsing command arguments: "+e.getMessage());
}
} else if (main.command.equals("watch")) {
((StdErrLog) org.eclipse.jetty.util.log.Log.getRootLogger()).setLevel(StdErrLog.LEVEL_WARN);
LogFactory.getInstance().setDefaultLoggingLevel(LogLevel.WARNING);
command = new WatchCommand(main);
Options options = new Options();
options.addOption(OptionBuilder.hasArg().withDescription("Webserver port. Default 8080").create("port"));
options.addOption(OptionBuilder.hasArg().withDescription("Database URL").isRequired().create("url"));
options.addOption(OptionBuilder.hasArg().withDescription("Database username").isRequired().create("username"));