summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-07-21 22:40:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-07-21 22:40:22 +0200
commit38636f6ec11d5fca9e447814311e202fda889907 (patch)
tree43ecb562dd2bfb8d8ebab871dc5aa315c2c9424d /bin/efa
parent1ec0a737d716d6f833c108fd0dfb008f88db077d (diff)
add -B / --bike-info option
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa15
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index 1037b67..bb57893 100755
--- a/bin/efa
+++ b/bin/efa
@@ -207,6 +207,7 @@ GetOptions(
arrive|a=s
auto-url|discover-and-print|A
bike|b
+ bike-info|B
date|d=s
depart|time|t=s
devmode
@@ -282,8 +283,11 @@ if ( not defined $ignore_info ) {
$ignore_info = join(
q{|},
grep { defined } (
- @{$opt->{accessibility}} ? undef : 'Einstiegshilfe',
- $opt->{bike} ? undef : 'Fahrradmitnahme',
+ @{ $opt->{accessibility} } ? undef : 'Einstiegshilfe',
+ (
+ $opt->{bike}
+ or $opt->{'bike-info'}
+ ) ? undef : 'Fahrradmitnahme',
)
);
}
@@ -517,6 +521,13 @@ Note that this may cause B<efa> to display no routes at all -- In that case,
the backend was unable to find such connections or didn't know about
their bike-support.
+=item B<-B>|B<--bike-info>
+
+Show information about bike support, but do not select routes based on it.
+In essence, this option simply changes the B<--ignore-info> default. It is
+useful when B<--bike> did not return any routes even though most of the
+route has bike support.
+
=item B<-d>|B<--date> I<dd>.I<mm>.[I<yyyy>]
Journey date