diff --git a/lokrez/__init__.py b/lokrez/__init__.py index e6493f8..dd7239a 100644 --- a/lokrez/__init__.py +++ b/lokrez/__init__.py @@ -92,6 +92,12 @@ def main(): help = "A JSON file matching player tags, characters and " \ "preferred skins", ) + top8_parser.add_argument( + "--cachedir", "-CD", + type = pathlib.Path, + default = pathlib.Path(APPDIRS.user_cache_dir), + help = "A directory to use for temporary files", + ) top8_parser.add_argument( "--templatesdir", "-TD", type = pathlib.Path, @@ -303,7 +309,7 @@ def main(): context, args.outfile, log = log, - cachedir = pathlib.Path(APPDIRS.user_cache_dir), + cachedir = args.cachedir, ) if rv is None: