Commit 1e481df1 authored by Steve Goering's avatar Steve Goering

fix alias function bug

parent 47d2b8ab
......@@ -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"][cmd]:
if alias in config["commands_aliases"][command]:
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(config, command)
subparsers[command].print_help()
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment