Add a new cachedir param

master
Niels Giorno 2020-08-28 12:49:55 +02:00
parent a70184923b
commit 46bffbe700
1 changed files with 7 additions and 1 deletions

View File

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