From 5f3e18a6aff524959c2b94c791bb2bc64bfbbae7 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 24 Nov 2023 19:44:53 +0100 Subject: efa-m: de-clutter default output (do not show messages by default) --- bin/efa-m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/efa-m b/bin/efa-m index e604cac..d1d452e 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -82,6 +82,7 @@ for my $efield (@edata_pre) { elsif ( $efield eq 'b' ) { $edata{route_before} = 1; $full_routes = 1 } elsif ( $efield eq 'f' ) { $edata{fullroute} = 1; $full_routes = 1 } elsif ( $efield eq 'r' ) { $edata{route} = 1; $full_routes = 1 } + elsif ( $efield eq 'm' ) { $edata{messages} = 1 } else { $edata{$efield} = 1 } } if ($filter_via) { @@ -193,7 +194,7 @@ sub display_result { for my $line (@lines) { - if ( length( $line->[5] ) ) { + if ( $edata{messages} and length( $line->[5] ) ) { $line->[5] =~ tr{\n\x0d}{ }s; chomp $line->[5]; print "\n"; @@ -509,6 +510,12 @@ Show up to three stops between the requested station and the departure's destination. B tries to display the three most important stops, however these are heuristically determined and may not be optimal. +=item m / messages + +Show free-text messages associated with individual departures. These can +include generic information such is bicycle transportation options or Wi-Fi +availability, delay reasons, and more. + =back =item B<-p>, B<--platform> I -- cgit v1.2.3