} else if (arg.equals("-d")) { targetDirName = arguments[++i];
  public void start() {    boolean ignoreDash = false;    String propertiesFile = null;    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("-f")) {          writeAbstractFactory = (!writeAbstractFactory);        } else if (arg.equals("-clean")) {          cleanp = true;        } else if (arg.equals("-properties")) {          propertiesFile = arguments[++i];        } else {          usage("Unknown option \""+arg+"\"");        }      } else {                  // deal with files        propertiesFile = arg;      }    }        if (propertiesFile == null) {      propertiesFile = PGParser.DEFAULT_FILENAME;    }    processFile(propertiesFile);  }