[cli] Resolve app name alias when adding new alias

This commit is contained in:
derrod 2021-10-07 17:06:39 +02:00
parent c2d60233fc
commit 6486d02daa

View file

@ -1505,7 +1505,7 @@ class LegendaryCLI:
if args.action == 'add': if args.action == 'add':
alias = args.alias alias = args.alias
app_name = args.app_or_alias app_name = self._resolve_aliases(args.app_or_alias)
game = self.core.get_game(app_name) game = self.core.get_game(app_name)
if not game: if not game:
logger.error(f'Invalid app name: "{app_name}"') logger.error(f'Invalid app name: "{app_name}"')