[cli] Show warning if platform may be invalid

This commit is contained in:
derrod 2021-12-02 15:22:13 +01:00
parent 7151470197
commit aeecaa4d3e

View file

@ -715,6 +715,9 @@ class LegendaryCLI:
logger.error(f'Update requested for "{args.app_name}", but app not installed!')
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)
if not game: