From: Michael Tremer Date: Mon, 23 Oct 2017 00:05:20 +0000 (+0100) Subject: cli: Parse tornado options as well X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1271bd03bbef09ddb7df2b759bfdd967feda115;p=people%2Fjschlag%2Fpbs.git cli: Parse tornado options as well Signed-off-by: Michael Tremer --- diff --git a/src/scripts/pakfire-build-service b/src/scripts/pakfire-build-service index 1f2a086..9c91243 100644 --- a/src/scripts/pakfire-build-service +++ b/src/scripts/pakfire-build-service @@ -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