Loading bin/hafas-m +82 −84 Original line number Diff line number Diff line Loading @@ -412,13 +412,11 @@ if ( $opt{geoSearch} ) { $result->eva, $result->name ); } exit 0; } elsif ( $opt{locationSearch} ) { for my $result ( $status->results ) { printf( "%8d %s\n", $result->eva, $result->name ); } exit 0; } elsif ( $opt{journey} ) { my $result = $status->result; Loading Loading @@ -597,9 +595,8 @@ elsif ( $opt{journey} ) { printf( "(%d) %s\n", $msg->{id}, $msg->text ); } } exit 0; } else { my @results = map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { [ $_->datetime->epoch, $_ ] } $status->results; Loading Loading @@ -698,6 +695,7 @@ for my $m ( $status->messages ) { } } } } __END__ Loading Loading @@ -777,8 +775,8 @@ Europe/Berlin). If a stop's local time differs, it is also provided. =head1 OPTIONS Values in brackets indicate options that only apply to the indicated operating mode(s). Values in brackets indicate options that only apply to the corresponding operating mode(s). =over Loading Loading
bin/hafas-m +82 −84 Original line number Diff line number Diff line Loading @@ -412,13 +412,11 @@ if ( $opt{geoSearch} ) { $result->eva, $result->name ); } exit 0; } elsif ( $opt{locationSearch} ) { for my $result ( $status->results ) { printf( "%8d %s\n", $result->eva, $result->name ); } exit 0; } elsif ( $opt{journey} ) { my $result = $status->result; Loading Loading @@ -597,9 +595,8 @@ elsif ( $opt{journey} ) { printf( "(%d) %s\n", $msg->{id}, $msg->text ); } } exit 0; } else { my @results = map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { [ $_->datetime->epoch, $_ ] } $status->results; Loading Loading @@ -698,6 +695,7 @@ for my $m ( $status->messages ) { } } } } __END__ Loading Loading @@ -777,8 +775,8 @@ Europe/Berlin). If a stop's local time differs, it is also provided. =head1 OPTIONS Values in brackets indicate options that only apply to the indicated operating mode(s). Values in brackets indicate options that only apply to the corresponding operating mode(s). =over Loading