From e4355001e73d543fe380394f02092600fefaf7f9 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 18 Feb 2020 10:56:37 +0530 Subject: [PATCH] fix: remove unnecessary - commands aliases --- bench/commands/config.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/bench/commands/config.py b/bench/commands/config.py index f8821b70..0ae01daa 100644 --- a/bench/commands/config.py +++ b/bench/commands/config.py @@ -9,17 +9,7 @@ from bench.config.common_site_config import update_config, get_config, put_confi import click - -class AliasedGroup(click.Group): - def get_command(self, ctx, cmd_name): - try: - cmd_name = ALIASES[cmd_name].name - except KeyError: - pass - return super(AliasedGroup, self).get_command(ctx, cmd_name) - - -@click.group(cls=AliasedGroup, help='Change bench configuration') +@click.group(help='Change bench configuration') def config(): pass @@ -130,6 +120,3 @@ config.add_command(config_serve_default_site) config.add_command(config_http_timeout) config.add_command(set_common_config) config.add_command(remove_common_config) - -# aliases for _ seperated commands to - ones -ALIASES = {k.replace('_', '-'):v for k, v in config.commands.items() if '_' in k}