diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 18:13:24 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 18:13:24 +0100 |
commit | d42f52a95fd2d7ac03abb40b5fd8d8e48f583461 (patch) | |
tree | d7f1e6c617578f81e7ac23352d2bb94fdbe6bb65 | |
parent | f4b94cd6078dd909e67c87cc1912324074b8ecc2 (diff) |
hafas: Fall back to VRN if no service has been specified
-rwxr-xr-x | bin/hafas | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -81,17 +81,7 @@ if ($list_services) { exit 0; } -if ( not $service ) { - say STDERR 'Note: You have called hafas without specifying a service.'; - say STDERR q{}; - say STDERR 'Unfortunately, the previous default service (DB HAFAS)'; - say STDERR 'is no more, and there is no generic replacement available.'; - say STDERR q{}; - say STDERR 'Please use "hafas --list" to list supported services,'; - say STDERR 'and then select one via -s <service>.'; - say STDERR 'Falling back to ÖBB for now.'; - $service = 'ÖBB'; -} +$service //= 'VRN'; parse_mot_options(); |