main.py: Actually use sys.argv

I set this but never actually passed it to the subprocess. Now I'm
wondering if I actually need it, or if that was just when I was tr-
ying to import the csv-metadata-quality module?
This commit is contained in:
Alan Orth 2021-03-13 12:47:51 +02:00
parent f1de00d7ca
commit 0471820f3a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -64,7 +64,7 @@ def process_file(base64slug):
# run subprocess and capture output as UTF-8 so we get a string instead of
# bytes for ansi2html
results = subprocess.run(
["csv-metadata-quality", "-i", input_file, "-o", output_file],
["csv-metadata-quality"] + sys.argv[1:],
capture_output=True,
encoding="UTF-8",
)