for(int i=argCount; i < argv.length; i++) { findBugs.examineFile(argv[i]); }
String[] fileList = new String[argv.length - argCount]; System.arraycopy(argv, argCount, fileList, 0, fileList.length);
  public static void main(String argv[]) throws Exception  { 	boolean sortByClass = false;	LinkedList<String> visitorNames = null;	boolean omit = false;	// Process command line options	int argCount = 0;	while (argCount < argv.length) {		String option = argv[argCount];		if (!option.startsWith("-"))			break;		if (option.equals("-sortByClass"))			sortByClass = true;		else if (option.equals("-visitors") || option.equals("-omitVisitors")) {			++argCount;			if (argCount == argv.length) throw new IllegalArgumentException(option + " option requires argument");			omit = option.equals("-omitVisitors");			StringTokenizer tok = new StringTokenizer(argv[argCount], ",");			visitorNames = new LinkedList<String>();			while (tok.hasMoreTokens())				visitorNames.add(tok.nextToken());		} else			throw new IllegalArgumentException("Unknown option: " + option);		++argCount;	}	if (argCount == argv.length) {		InputStream in = FindBugs.class.getClassLoader().getResourceAsStream("USAGE");		if (in == null)  {			System.out.println("FindBugs tool, version 0.4");			System.out.println("usage: java -jar FindBugs.jar [options] <classfiles, zip files or jar files>");			System.out.println("Example: java -jar FindBugs.jar rt.jar");			System.out.println("Options:");			System.out.println("   -sortByClass                           sort bug reports by class");			System.out.println("   -visitors <visitor 1>,<visitor 2>,...  run only named visitors");			System.out.println("   -omitVisitors <v1>,<v2>,...            omit named visitors");			}		else			IO.copy(in,System.out);		return;		}	BugReporter bugReporter = sortByClass ? (BugReporter)new SortingBugReporter() : (BugReporter)new PrintingBugReporter();	FindBugs findBugs = new FindBugs(bugReporter, visitorNames, omit);	for(int i=argCount; i < argv.length; i++) {		findBugs.examineFile(argv[i]);		}  	findBugs.reportFinal();	// Flush any queued bug reports	bugReporter.finish();  }