countBugs.printCounts(System.out, diffMode);
	public static void main(String[] argv) throws Exception {		if (argv.length < 1) {			usage();		}		int arg = 0;		String categoryList = "";		boolean diffMode = false;		while (arg < argv.length - 1) {			String option = argv[arg];			if (option.equals("-categories")) {				++arg;				if (arg >= argv.length)					throw new IllegalArgumentException("-categories option requires argument");				categoryList = argv[arg];			} else if (option.equals("-diff")) {				diffMode = true;			} else				break;			++arg;		}		if (arg >= argv.length)			usage();		String filename = argv[arg];		CountBugs countBugs = new CountBugs(filename);		countBugs.execute();		Iterator<Map.Entry<String, Integer>> j = countBugs.entryIterator();		while(j.hasNext()) {			Map.Entry<String,Integer> entry = j.next();			System.out.println(entry.getKey() + ": " + entry.getValue());		}	}