Use the proper set of arguments in docs loader
authorMagnus Hagander <magnus@hagander.net>
Mon, 20 Jun 2022 18:30:55 +0000 (20:30 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 20 Jun 2022 18:32:05 +0000 (20:32 +0200)
We parsed it out using the options parser, but then when using it
required a hardcoded order on the commandline. That made no sense...

tools/docs/docload.py

index 5ececcb6b7b8b2f008eb576bc5477f1f8d909478..1807e214c8d5bdacb29c6d06545c81ea15c47742 100755 (executable)
@@ -117,8 +117,8 @@ if verbose and quiet:
     print("Can't be both verbose and quiet at the same time!")
     sys.exit(1)
 
-ver = sys.argv[1]
-tarfilename = sys.argv[2]
+ver = args[0]
+tarfilename = args[1]
 
 # load the configuration that is used to connect to the database
 config = ConfigParser()