summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-01-13 18:14:01 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-01-13 18:14:01 +0100
commit068f7ba6eac35b1b6d34e177015c726a9c876d24 (patch)
tree5c837f22e98199ec5694f5460233fd146399d814 /bin/hafas
parentd42f52a95fd2d7ac03abb40b5fd8d8e48f583461 (diff)
hafas --list: skip DB
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/hafas b/bin/hafas
index 398e05a..fc525cf 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -72,6 +72,9 @@ GetOptions(
if ($list_services) {
printf( "%-40s %-14s %s\n\n", 'operator', 'abbr. (-s)', 'languages (-l)' );
for my $service ( Travel::Routing::DE::HAFAS::get_services() ) {
+ if ( $service->{shortname} eq 'DB' ) {
+ next;
+ }
printf(
"%-40s %-14s %s\n",
@{$service}{qw(name shortname)},