mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Resolve app name alias when adding new alias
This commit is contained in:
parent
c2d60233fc
commit
6486d02daa
|
@ -1505,7 +1505,7 @@ class LegendaryCLI:
|
|||
|
||||
if args.action == 'add':
|
||||
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)
|
||||
if not game:
|
||||
logger.error(f'Invalid app name: "{app_name}"')
|
||||
|
|
Loading…
Reference in a new issue