Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Routing-DE-EFA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
Travel-Routing-DE-EFA
Commits
9256af3b
Commit
9256af3b
authored
15 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
efa: Renamed --restrict option to --include
parent
873ff588
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/efa
+9
-9
9 additions, 9 deletions
bin/efa
provides/zsh/completions/_efa
+1
-1
1 addition, 1 deletion
provides/zsh/completions/_efa
with
10 additions
and
10 deletions
bin/efa
+
9
−
9
View file @
9256af3b
...
@@ -138,7 +138,7 @@ GetOptions(
...
@@ -138,7 +138,7 @@ GetOptions(
'
post=s
'
=>
\
%post
,
'
post=s
'
=>
\
%post
,
'
prefer=s
'
=>
\
$prefer
,
'
prefer=s
'
=>
\
$prefer
,
'
proximity
'
=>
\
$proximity
,
'
proximity
'
=>
\
$proximity
,
'
restrict
=s
'
=>
\
$
restrict
,
'
include
=s
'
=>
\
$
include
,
'
time=s
'
=>
\
$time
,
'
time=s
'
=>
\
$time
,
'
to=s{2}
'
=>
\
@to
,
'
to=s{2}
'
=>
\
@to
,
'
to-type=s
'
=>
\
$to_type
,
'
to-type=s
'
=>
\
$to_type
,
...
@@ -237,14 +237,14 @@ if ($proximity) {
...
@@ -237,14 +237,14 @@ if ($proximity) {
$post
{
useProxFootSearch
}
=
1
;
$post
{
useProxFootSearch
}
=
1
;
}
}
if
(
$
restrict
)
{
if
(
$
include
)
{
given
(
$
restrict
)
{
given
(
$
include
)
{
when
('
local
')
{
$post
{
lineRestriction
}
=
403
}
when
('
local
')
{
$post
{
lineRestriction
}
=
403
}
when
('
ic
')
{
$post
{
lineRestriction
}
=
401
}
when
('
ic
')
{
$post
{
lineRestriction
}
=
401
}
when
('
ice
')
{
$post
{
lineRestriction
}
=
400
}
when
('
ice
')
{
$post
{
lineRestriction
}
=
400
}
when
(
/\d+/
)
{
$post
{
lineRestriction
}
=
$
restrict
}
when
(
/\d+/
)
{
$post
{
lineRestriction
}
=
$
include
}
default
{
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)
...
@@ -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
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
=over
...
@@ -417,11 +417,11 @@ method if you're not travelling long distance
...
@@ -417,11 +417,11 @@ method if you're not travelling long distance
=item * ic
=item * ic
Al
l trains
except
IC
E
Loca
l trains
+
IC
=item * ice
=item * ice
All trains
All trains
(local + IC + ICE)
=back
=back
...
...
This diff is collapsed.
Click to expand it.
provides/zsh/completions/_efa
+
1
−
1
View file @
9256af3b
...
@@ -14,7 +14,7 @@ arguments=(
...
@@ -14,7 +14,7 @@ arguments=(
'--max-change:number'
'--max-change:number'
'--prefer:type:(speed nowait nowalk)'
'--prefer:type:(speed nowait nowalk)'
'--proximity'
'--proximity'
'--
restrict
:type:(local ic ice)'
'--
include
:type:(local ic ice)'
'--walk-speed:speed:(normal fast slow)'
'--walk-speed:speed:(normal fast slow)'
'--ignore-info:regex'
'--ignore-info:regex'
'*--post:POST key=value'
'*--post:POST key=value'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment