countBugs2.setCategories(categoryList);
countBugs2.setKeys(keyList);
	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.setCategories(categoryList);		countBugs.execute();		if (diffMode) {			if (arg >= argv.length)				usage();			CountBugs countBugs2 = new CountBugs(argv[arg++]);			countBugs2.setCategories(categoryList);			countBugs2.execute();			countBugs.diffCounts(countBugs2);		}		countBugs.printCounts(System.out, diffMode);		if (!diffMode)			System.out.println("Total:\t" + countBugs.getTotal());	}