diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-03-02 19:20:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-03-02 19:20:31 +0100 |
commit | 444dad0d33aa2d0ca9750bbac49268489854ba4d (patch) | |
tree | f02e3f1450df2eaeb1ea6ed86c825238faff1c30 /bin | |
parent | 526412033bbb5f656770d9ebd1999819adf22d7b (diff) |
Add option to specify maximum number of connections
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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>: |