1
0
mirror of synced 2024-11-12 01:00:46 +01:00

Get rid of useless threading argument for list command.

This commit is contained in:
Jennifer Taylor 2021-05-23 20:31:23 +00:00
parent 8e52428d76
commit 9dada6fb79

View File

@ -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: