diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-24 19:44:53 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-24 19:44:53 +0100 |
commit | 5f3e18a6aff524959c2b94c791bb2bc64bfbbae7 (patch) | |
tree | 080cd1d4db2b1a1d9ada76cf3d72ab31d01c92ce /bin | |
parent | 3d7987189ce99a13bafd97216e2c0e91b2072a94 (diff) |
efa-m: de-clutter default output (do not show messages by default)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa-m | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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> |