From 6f1b5fd422733715430e5353e9c97fb7329e5c5d Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Thu, 5 Aug 2021 00:54:15 +0200 Subject: [PATCH] CLI --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a9a12d0..7d70b44 100755 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ def main(): parser.add_argument( 'opus_id', default="1", - metavar="OpusID", + metavar="Opus_ID", nargs="?", help='the Opus to import') @@ -42,7 +42,7 @@ def main(): # main program opus = Opus(args.opus_id) - book = Book(opus, GRID, RESOLUTION, "eg", 16) + book = Book(opus, GRID, RESOLUTION, "eg", args.num_threads) book.save(f"{opus.name}_{{}}.jpg") # bye