Commit a41dbb97 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

efa: Add option checking for --exclude

parent 84bc19fd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -300,14 +300,19 @@ if (@exclude) {
		zug s-bahn u-bahn stadtbahn tram stadtbus regionalbus
		schnellbus seilbahn schiff ast sonstige
	/;
	my $ok = 0;

	foreach my $exclude_type (@exclude) {
		for my $map_id (0 .. $#mapping) {
			if ($exclude_type eq $mapping[$map_id]) {
				$post{"inclMOT_$map_id"} = undef;
				$ok = 1;
			}
		}
	}
	if (not $ok) {
		die("Invalid argument. See manpage for --exclude usage\n");
	}
}

if (defined($maxinter)) {