mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Show warning if platform may be invalid
This commit is contained in:
parent
7151470197
commit
aeecaa4d3e
|
@ -715,6 +715,9 @@ class LegendaryCLI:
|
||||||
logger.error(f'Update requested for "{args.app_name}", but app not installed!')
|
logger.error(f'Update requested for "{args.app_name}", but app not installed!')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
if args.platform not in ('Win32', 'Windows', 'Mac'):
|
||||||
|
logger.warning(f'Platform "{args.platform}" may be invalid. Valid ones are: Windows, Win32, Mac.')
|
||||||
|
|
||||||
game = self.core.get_game(args.app_name, update_meta=True)
|
game = self.core.get_game(args.app_name, update_meta=True)
|
||||||
|
|
||||||
if not game:
|
if not game:
|
||||||
|
|
Loading…
Reference in a new issue