Loading bin/efa +4 −4 Original line number Diff line number Diff line Loading @@ -147,20 +147,20 @@ sub opt_exclude { zug s-bahn u-bahn stadtbahn tram stadtbus regionalbus schnellbus seilbahn schiff ast sonstige /; my $ok = 0; my (undef, $str) = @_; my @exclude = split(/,/, $str); foreach my $exclude_type (@exclude) { my $ok = 0; for my $map_id (0 .. $#mapping) { if ($exclude_type eq $mapping[$map_id]) { $post{"inclMOT_$map_id"} = undef; $ok = 1; } } } if (not $ok) { die("exclude: Invalid argument.\n"); die("exclude: Invalid argument: $exclude_type\n"); } } } Loading test/50-efa.t +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ my $EMPTY = ''; my $re_usage = qr{Insufficient to/from arguments, see \S*efa --help for usage}; my $re_version = qr{\S*efa version \S+}; my $err_exclude = "exclude: Invalid argument.\n"; my $err_exclude = "exclude: Invalid argument: invalid\n"; my $err_prefer = "prefer: Invalid argument. Use speed|nowait|nowalk\n"; my $err_include = "include: Invalid argument. Use local|ic|ice\n"; my $err_time = "time: Invalid argument. Use HH:MM\n"; Loading Loading
bin/efa +4 −4 Original line number Diff line number Diff line Loading @@ -147,20 +147,20 @@ sub opt_exclude { zug s-bahn u-bahn stadtbahn tram stadtbus regionalbus schnellbus seilbahn schiff ast sonstige /; my $ok = 0; my (undef, $str) = @_; my @exclude = split(/,/, $str); foreach my $exclude_type (@exclude) { my $ok = 0; for my $map_id (0 .. $#mapping) { if ($exclude_type eq $mapping[$map_id]) { $post{"inclMOT_$map_id"} = undef; $ok = 1; } } } if (not $ok) { die("exclude: Invalid argument.\n"); die("exclude: Invalid argument: $exclude_type\n"); } } } Loading
test/50-efa.t +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ my $EMPTY = ''; my $re_usage = qr{Insufficient to/from arguments, see \S*efa --help for usage}; my $re_version = qr{\S*efa version \S+}; my $err_exclude = "exclude: Invalid argument.\n"; my $err_exclude = "exclude: Invalid argument: invalid\n"; my $err_prefer = "prefer: Invalid argument. Use speed|nowait|nowalk\n"; my $err_include = "include: Invalid argument. Use local|ic|ice\n"; my $err_time = "time: Invalid argument. Use HH:MM\n"; Loading