summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-24 19:44:53 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-24 19:44:53 +0100
commit5f3e18a6aff524959c2b94c791bb2bc64bfbbae7 (patch)
tree080cd1d4db2b1a1d9ada76cf3d72ab31d01c92ce /bin/efa-m
parent3d7987189ce99a13bafd97216e2c0e91b2072a94 (diff)
efa-m: de-clutter default output (do not show messages by default)
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m9
1 files changed, 8 insertions, 1 deletions
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<efa-m> 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<platforms>