From aeecaa4d3ea8246451ee7f5f0e88fb0172573f90 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 2 Dec 2021 15:22:13 +0100 Subject: [PATCH] [cli] Show warning if platform may be invalid --- legendary/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 1d4f5a6..01faa2c 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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: