diff --git a/bin/hafas-m b/bin/hafas-m
index 74f5ebdbf1a47bdec4a424b9cf488eb8aa06d347..2cb7a2b9561fdeb34a98a6b91ca912ba160d9a1a 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -86,6 +86,11 @@ sub parse_mot_options {
 
 	my $default_yes = 1;
 
+	if ($hafas_url) {
+		say STDERR 'The options -u and -m cannot be combined. Discarding -m';
+		return;
+	}
+
 	for my $type ( split( qr{,}, $types ) ) {
 		if ( $type eq 'help' or $type eq 'list' or $type eq q{?} ) {
 			if ( not $hafas_url ) {