commit 181dead6afb8fc9c84c9bcf5fe340029dfe25c44
parent 18a1c8744d180b8b5ffda5ffc1ce06f54823f711
Author: Yuval Langer <yuval.langer@gmail.com>
Date: Wed, 27 Jun 2018 20:32:02 +0300
Split long arguments and use pprint as print
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/url2pandoc2calibre b/bin/url2pandoc2calibre
@@ -1,5 +1,6 @@
#!/usr/bin/python3
+from pprint import pprint as print
import pathlib
import subprocess
import sys
@@ -14,13 +15,13 @@ def main():
command_list = [
"pandoc",
- f"--output={output_path}",
- f"--request-header='{user_agent}'",
+ "--output", f"{output_path}",
+ "--request-header", f"{user_agent}",
"--self-contained",
"--verbose",
] + sys.argv[1:]
- print(" ".join(command_list))
+ print(command_list)
subprocess.run(command_list, check=True)