From 0d1592266b2c9d674aaf4065b891311f093c3e9c Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 1 Dec 2021 21:06:39 +0100 Subject: [PATCH] [cli] Set platform argument default --- legendary/cli.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index d2a7ac9..637a187 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -699,10 +699,6 @@ class LegendaryCLI: logger.error('Login failed! Cannot continue with download process.') exit(1) - # default to windows unless installed game or command line has overriden it - if not args.platform: - args.platform = 'Windows' - if args.file_prefix or args.file_exclude_prefix: args.no_install = True @@ -1827,7 +1823,7 @@ def main(): install_parser.add_argument('--dlm-debug', dest='dlm_debug', action='store_true', help='Set download manager and worker processes\' loglevel to debug') install_parser.add_argument('--platform', dest='platform', action='store', metavar='', - type=str, help='Platform override for download') + type=str, help='Platform override for download', default='Windows') install_parser.add_argument('--prefix', dest='file_prefix', action='append', metavar='', help='Only fetch files whose path starts with (case insensitive)') install_parser.add_argument('--exclude', dest='file_exclude_prefix', action='append', metavar='',