} else if (arg.equals("-d")) { targetDirName = arguments[++i];
  public void start() {    boolean ignoreDash = false;    String assetsFile = 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.charAt(1) == 'P') {	  // handle -Ppackage.name argument	  asset_package = arg.substring(2);	  if (isVerbose) {	    System.err.println("Setting asset_package to "  + asset_package);	  }        } else if (arg.equals("-clean")) {          cleanp = true;        } else if (arg.equals("-assets")) {          assetsFile = arguments[++i];        } else {          usage("Unknown option \""+arg+"\"");        }      } else {        assetsFile = arg;      }    }    if (assetsFile == null) {      assetsFile = DEFAULT_FILENAME;    }    processFile(assetsFile);  }