]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
cli: Parse tornado options as well
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Oct 2017 00:05:20 +0000 (01:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Oct 2017 00:05:20 +0000 (01:05 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/pakfire-build-service

index 1f2a086cbef8fd56af8db59ddb2acb135f23f315..9c91243a66e37ebccefa2b7f89471fc886e6d2f9 100644 (file)
@@ -55,12 +55,14 @@ class Cli(object):
                }
 
        def __call__(self, *args):
-               if not len(args) >= 2:
+               # Parse tornado settings
+               args = tornado.options.parse_command_line(args)
+
+               if not len(args) >= 1:
                        print >>sys.stderr, "Insufficient number of arguments"
                        return 2
 
                args = list(args)
-               basename = args.pop(0)
                command  = args.pop(0)
 
                # Get called command