for (int i = 0; i < argv.length; ++i) scan(argv[i]);
int start = 0; String category = null; if (argv[0].equals("-category")) { category = argv[1]; start = 2; }  for (int i = start; i < argv.length; ++i) scan(argv[i], category);
	public static void main(String[] argv) throws Exception {		if (argv.length < 1) {			System.err.println("Usage: " + FindExamples.class.getName() + " <results file>");			System.exit(1);		}		DetectorFactoryCollection.instance(); // load plugins		for (int i = 0; i < argv.length; ++i)			scan(argv[i]);	}