summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-09 18:16:28 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-09 18:16:28 +0100
commitf4b94cd6078dd909e67c87cc1912324074b8ecc2 (patch)
tree4c06d4bc6c431270bccf190d589df9775db4ed21 /bin
parent1616bad43049e149df95014b7709026361b04c66 (diff)
DB HAFAS is no more; service is now a mandatory argument
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/hafas b/bin/hafas
index 4b4f523..f62427e 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -81,6 +81,18 @@ 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';
+}
+
parse_mot_options();
my ( $from_stop, @via_stops ) = @ARGV;