summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-24 23:50:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-24 23:50:35 +0200
commit5ccc860530ecd985d036a16870ae530cd340e658 (patch)
treec953574b3bc862f4303f9b1c96899c0e000b431f /bin
parent478265679129970a579244e8556ef324a00f11f3 (diff)
hafas-m: print warning when combining -m and -u
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas-m5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 74f5ebd..2cb7a2b 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 ) {