} else if (arg.equals("-d")) { targetDirName = arguments[++i];
  public void start() {    boolean ignoreDash = false;    boolean did = false;    for (int i=0; i<arguments.length; i++) {      String arg = arguments[i];      if (!ignoreDash && arg.startsWith("-")) { // parse flags        if (arg.equals("--")) {          ignoreDash = true;        } else if (arg.equals("-v")) {          isVerbose = (!isVerbose);        } else if (arg.equals("-clean")) {          cleanp = true;        } else {          usage("Unknown option \""+arg+"\"");        }      } else {                  // deal with files        processFile(arg);        did = true;      }    }    if (!did) {      processFile("measures.def");    }  }