diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-11 16:24:04 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-11 16:24:12 +0200 |
commit | a41dbb97fc2b584a0c6f58961f94024782e47577 (patch) | |
tree | e2e144a8f038be768691cabeaa4c8a6c3f12d9f7 | |
parent | 84bc19fdf18ef3def54a60d364c1791fc19c4eb1 (diff) |
efa: Add option checking for --exclude
-rwxr-xr-x | bin/efa | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) { |