From 9dada6fb799c3624cf70ee5c1aedff9daad35ef4 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sun, 23 May 2021 20:31:23 +0000 Subject: [PATCH] Get rid of useless threading argument for list command. --- bemani/utils/afputils.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bemani/utils/afputils.py b/bemani/utils/afputils.py index 482e481..f7d4d43 100644 --- a/bemani/utils/afputils.py +++ b/bemani/utils/afputils.py @@ -312,11 +312,6 @@ def main() -> int: action="store_true", help="Display verbuse debugging output", ) - list_parser.add_argument( - "--disable-threads", - action="store_true", - help="Disable multi-threaded rendering.", - ) args = parser.parse_args() @@ -595,7 +590,10 @@ def main() -> int: if args.action in ["render", "list"]: # This is a complicated one, as we need to be able to specify multiple # directories of files as well as support IFS files and TXP2 files. - renderer = AFPRenderer(single_threaded=args.disable_threads) + if args.action == 'render': + renderer = AFPRenderer(single_threaded=args.disable_threads) + else: + renderer = AFPRenderer() # TODO: Allow specifying individual folders and such. for container in args.container: