if (argv.length < 1) { System.err.println("Usage: " + FindExamples.class.getName() + " [-category <category>]" + " <results file>"); System.exit(1); }  DetectorFactoryCollection.instance();  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);
new FindExamples().execute(argv);
	public static void main(String[] argv) throws Exception {		if (argv.length < 1) {			System.err.println("Usage: " + FindExamples.class.getName() +				" [-category <category>]" +				" <results file>");			System.exit(1);		}		DetectorFactoryCollection.instance(); // load plugins		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);	}