From 9256af3b422f894888891c5ad67db960c5990ffe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 23:41:58 +0200 Subject: efa: Renamed --restrict option to --include --- bin/efa | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin') diff --git a/bin/efa b/bin/efa index 04f3c34..88f72dd 100755 --- a/bin/efa +++ b/bin/efa @@ -138,7 +138,7 @@ GetOptions( 'post=s' => \%post, 'prefer=s' => \$prefer, 'proximity' => \$proximity, - 'restrict=s' => \$restrict, + 'include=s' => \$include, 'time=s' => \$time, 'to=s{2}' => \@to, 'to-type=s' => \$to_type, @@ -237,14 +237,14 @@ if ($proximity) { $post{useProxFootSearch} = 1; } -if ($restrict) { - given ($restrict) { +if ($include) { + given ($include) { when('local') { $post{lineRestriction} = 403 } when('ic') { $post{lineRestriction} = 401 } when('ice') { $post{lineRestriction} = 400 } - when(/\d+/) { $post{lineRestriction} = $restrict } + when(/\d+/) { $post{lineRestriction} = $include } default { - print STDERR "--restrict usage: local / ic / ice\n"; + print STDERR "--include usage: local / ic / ice\n"; } } } @@ -404,9 +404,9 @@ Prefer connections with less walking (at interchanges) Take stops close to the stop/start into account and possibly use them instead -=item B<--restrict> I +=item B<--include> I -Only accept connections using trains of type I, where I may be: +Include connections using trains of type I, where I may be: =over @@ -417,11 +417,11 @@ method if you're not travelling long distance =item * ic -All trains except ICE +Local trains + IC =item * ice -All trains +All trains (local + IC + ICE) =back -- cgit v1.2.3