summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-03-02 19:20:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-03-02 19:20:31 +0100
commit444dad0d33aa2d0ca9750bbac49268489854ba4d (patch)
treef02e3f1450df2eaeb1ea6ed86c825238faff1c30 /bin
parent526412033bbb5f656770d9ebd1999819adf22d7b (diff)
Add option to specify maximum number of connections
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/efa b/bin/efa
index d3233c7..dcd2b41 100755
--- a/bin/efa
+++ b/bin/efa
@@ -155,6 +155,7 @@ GetOptions(
help|h
ignore-info|I:s
max-change|m=i
+ num-connections|n=i
prefer|P=s
proximity|p
include|i=s
@@ -220,6 +221,7 @@ $efa = eval {
use_near_stops => $opt->{proximity},
walk_speed => $opt->{'walk-speed'},
max_interchanges => $opt->{'max-change'},
+ num_results => $opt->{'num-connections'},
lwp_options => { timeout => $opt->{timeout} },
);
@@ -330,6 +332,11 @@ Display duration, ticket class and price for each route (if available)
Print connections with at most I<number> interchanges
+=item B<-n>|B<--num-connections> I<number>
+
+Return up to I<number> connections. If unset, the default of the respective
+EFA server is used (usually 4 or 5).
+
=item B<-P>|B<--prefer> I<type>
Prefer connections of I<type>: