throws IOException, ParseError
throws IOException
  public static void main(String[] args)    throws IOException, ParseError    {      String tool = null, tifsfile = null;      String pkg = null, javaclass = null;      String output = null;      for(int i=0; i<args.length; i++) {	if (args[i].equals("-h")) {	  usage();	} else if (args[i].equals("-tool")) {	  tool = args[++i];	} else if (args[i].equals("-tifs")) {	  tifsfile = args[++i];	} else if (args[i].equals("-package")) {	  pkg = args[++i];	} else if (args[i].equals("-class")) {	  javaclass = args[++i];	}      }      if (tool == null || tifsfile == null) {	usage();      } else {	if (javaclass == null)	  javaclass = JavaTif.capitalize(tool, true) + "Tif";	JavaTif gen = new JavaTif();	gen.readTifs(tifsfile);	gen.selectTifs(tool);	if (!gen.found_one) {	  System.err.println("warning: no tifs found for tool " + tool);	}	gen.genJavaTif(pkg, javaclass);      }    }