diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hafas | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; |