Commit bca865d2 authored by Steve Goering's avatar Steve Goering

fix alias function bug

parent 1e481df1
......@@ -163,11 +163,10 @@ def main(args):
argsdict = vars(parseresults[0])
parameter = parseresults[1]
if len(argsdict) == 2 and argsdict['<subcommand>'] is None:
command = argsdict['<command>']
if command not in subparsers:
command = translate_alias_to_command(config, command)
if argsdict['<command>'] not in subparsers:
argsdict['<command>'] = translate_alias_to_command(config, argsdict['<command>'])
if len(argsdict) == 2 and argsdict['<subcommand>'] is None:
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