Commit d890245c authored by Steve Goering's avatar Steve Goering

fix local help bug

parent ff2061c0
......@@ -25,7 +25,7 @@ def check_commands_alias_definition(config):
for alias in config["commands_aliases"][command]:
aliashisto[alias] = aliashisto.get(alias, 0) + 1
if len(config["commands_aliases"].keys()) != len(aliashisto.keys()):
if len([x for x in aliashisto if aliashisto[x] > 1]):
lError("Commands alias definition has collisions, please fix it.")
sys.exit(1)
......@@ -168,7 +168,7 @@ def main(args):
config, argsdict['<command>'])
if len(argsdict) == 2 and argsdict['<subcommand>'] is None:
subparsers[command].print_help()
subparsers[argsdict['<command>']].print_help()
return 0
return run_subcommand(
......
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