summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-09 23:41:58 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-09 23:41:58 +0200
commit9256af3b422f894888891c5ad67db960c5990ffe (patch)
tree8233dbcffad312a0eb31c50d1b56928094f46627
parent873ff588eb54d6470b5f4689366eacbf33b77dc2 (diff)
efa: Renamed --restrict option to --include
-rwxr-xr-xbin/efa18
-rw-r--r--provides/zsh/completions/_efa2
2 files changed, 10 insertions, 10 deletions
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<type>
+=item B<--include> I<type>
-Only accept connections using trains of type I<type>, where I<type> may be:
+Include connections using trains of type I<type>, where I<type> 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
diff --git a/provides/zsh/completions/_efa b/provides/zsh/completions/_efa
index 1ab55e5..97955c3 100644
--- a/provides/zsh/completions/_efa
+++ b/provides/zsh/completions/_efa
@@ -14,7 +14,7 @@ arguments=(
'--max-change:number'
'--prefer:type:(speed nowait nowalk)'
'--proximity'
- '--restrict:type:(local ic ice)'
+ '--include:type:(local ic ice)'
'--walk-speed:speed:(normal fast slow)'
'--ignore-info:regex'
'*--post:POST key=value'