Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
code-webis-cmd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
code-generic
code-webis-cmd
Commits
1e481df1
Commit
1e481df1
authored
Aug 14, 2015
by
Steve Goering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix alias function bug
parent
47d2b8ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
webis.py
webis.py
+2
-2
No files found.
webis.py
View file @
1e481df1
...
...
@@ -115,7 +115,7 @@ def run_subcommand(subcommand, subcommandpath, params=[]):
def
translate_alias_to_command
(
config
,
alias
):
"""Transforms a given alias to the unique command."""
for
command
in
config
[
"commands_aliases"
]:
if
alias
in
config
[
"commands_aliases"
][
c
m
d
]:
if
alias
in
config
[
"commands_aliases"
][
c
omman
d
]:
return
command
...
...
@@ -166,7 +166,7 @@ def main(args):
if
len
(
argsdict
)
==
2
and
argsdict
[
'<subcommand>'
]
is
None
:
command
=
argsdict
[
'<command>'
]
if
command
not
in
subparsers
:
command
=
translate_alias_to_command
(
command
)
command
=
translate_alias_to_command
(
co
nfig
,
co
mmand
)
subparsers
[
command
].
print_help
()
return
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment