From ff29b949cb1c132b1cb2ae7c819a0da3eea3ddda Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Sep 2021 08:07:28 +0200 Subject: [PATCH] [cli] Add "--with-dlcs" flag to automatically install all DLCs --- legendary/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index ba78ff8..9a6db36 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -830,7 +830,7 @@ class LegendaryCLI: print('Manually installing DLCs works the same; just use the DLC app name instead.') install_dlcs = True - if not args.yes: + if not args.yes and not args.with_dlcs: if not get_boolean_choice(f'Do you wish to automatically install DLCs?'): install_dlcs = False @@ -1484,6 +1484,8 @@ def main(): help='Set the hostname of the preferred CDN to use when available') install_parser.add_argument('--no-https', dest='disable_https', action='store_true', help='Download games via plaintext HTTP (like EGS), e.g. for use with a lan cache') + install_parser.add_argument('--with-dlcs', dest='with_dlcs', action='store_true', + help='Automatically install all DLCs with the base game') uninstall_parser.add_argument('--keep-files', dest='keep_files', action='store_true', help='Keep files but remove game from Legendary database')