if (input.equals("-")) { inputStream = System.in; if (output == null) { usage(); } } else { inputStream = new FileInputStream(input); if (output == null) { int extIndex = input.lastIndexOf((int)'.'); output = input.substring(0, extIndex); } } CGen gen = new CGen(inputStream, output, prefix, prologue);
  public final static void main(String[] args)    throws IOException  {    String prefix = "";    String output = null;    String prologue = null;    InputStream inputStream;    if (args.length == 0) {      usage();    }    for (int i=0; i<args.length; i++) {      if ("-help".startsWith(args[i])) {	usage();      } else if ("-verbose".startsWith(args[i])) {	verbose = true;      } else if ("-prefix".startsWith(args[i])) {	prefix = args[++i];      } else if ("-output".startsWith(args[i])) {	output = args[++i];      } else if ("-prologue".startsWith(args[i])) {	prologue = args[++i];      } else if ("-input".startsWith(args[i])) {	String input = args[++i];	if (input.equals("-")) {	  inputStream = System.in;	  if (output == null) {	    usage();	  }	} else {	  inputStream = new FileInputStream(input);	  if (output == null) {	    int extIndex = input.lastIndexOf((int)'.');	    output = input.substring(0, extIndex);	  }	}	CGen gen = new CGen(inputStream, output, prefix, prologue);      } else {	usage();      }    }  }