Unverified Commit d42f52a9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas: Fall back to VRN if no service has been specified

parent f4b94cd6
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -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();