+ else if (args[startargs].equals("-a")) JS.checkAssertions = true;
+ else if (args[startargs].equals("-l")) {
+ startargs++;
+ StringTokenizer opts = new StringTokenizer(args[startargs], ",");
+ while(opts.hasMoreTokens()) {
+ String opt = opts.nextToken();
+ if (opt.indexOf('@') != -1) Log.email(opt);
+ else if (opt.indexOf(':') != -1)
+ Log.tcp(opt.substring(0, opt.indexOf(':')),
+ Integer.parseInt(opt.substring(opt.indexOf(':') + 1)));
+ else if (opt.equals("debug")) Log.level = Log.DEBUG;
+ else if (opt.equals("info")) Log.level = Log.INFO;
+ else if (opt.equals("warn")) Log.level = Log.WARN;
+ else if (opt.equals("error")) Log.level = Log.ERROR;
+ else if (opt.equals("error")) Log.level = Log.SILENT;
+ else Log.file(opt);
+ }
+ }