rem: while ((opt = getopt(argc, argv, "ave:")) != -1) {
add: while ((opt = getopt(argc, argv, "eav:")) != -1) {
context: main(int32 argc, const char **argv){	// Make sure we have the minimum number of arguments.	if (argc < 2)		usage();		// Which volume do we make the query on?	// Default to the current volume.	char volumePath[B_FILE_NAME_LENGTH];	strcpy(volumePath, ".");	// Parse command-line arguments.	int32 opt;	while ((opt = getopt(argc, argv, "ave:")) != -1) {		switch(opt) {		case 'a':			o_all_volumes = true;			break;		case 'e':			o_escaping = false;			break;		case 'v':			strncpy(volumePath, optarg, B_FILE_NAME_LENGTH);			break;		default:			usage();			break;		}	}	BVolume volume;	if (!o_all_volumes) {		// Find the volume that the query should be performed on,		// and set the query to it.		BEntry entry(volumePath);		if (entry.InitCheck() != B_OK) {			printf("query: %s is not a valid file\n", volumePath);			exit(0);		}		entry.GetVolume(&volume);		if (!volume.KnowsQuery())			printf("query: volume containing %s is not query-enabled\n", volumePath);		else			perform_query(volume, argv[optind]);	} else {			// Okay, we want to query all the disks -- so iterate over		// them, one by one, running the query.		BVolumeRoster volumeRoster;		while (volumeRoster.GetNextVolume(&volume) == B_OK) {			// We don't print errors here -- this will catch /pipe and			// other filesystems we don't care about.			if (volume.KnowsQuery())				perform_query(volume, argv[optind]);		}	}	return 0;}