diff --git a/swh/core/cli/__init__.py b/swh/core/cli/__init__.py --- a/swh/core/cli/__init__.py +++ b/swh/core/cli/__init__.py @@ -24,14 +24,9 @@ def __init__(self, name=None, commands=None, **attrs): self.option_notes = attrs.pop('option_notes', None) + self.aliases = {} super().__init__(name, commands, **attrs) - @property - def aliases(self): - if not hasattr(self, '_aliases'): - self._aliases = {} - return self._aliases - def get_command(self, ctx, cmd_name): return super().get_command(ctx, self.aliases.get(cmd_name, cmd_name))