Enable quiet mode when writing output to stdout

(otherwise informational text output would be mixed into the SVG output)

fixes #47
This commit is contained in:
Eduard Braun 2016-08-15 21:37:48 +02:00
parent fe2884c3e8
commit 2165ef7031

View file

@ -3306,6 +3306,9 @@ def parse_args(args=None, ignore_additional_args=False):
outfile = sys.stdout.buffer outfile = sys.stdout.buffer
except AttributeError: except AttributeError:
outfile = sys.stdout outfile = sys.stdout
# enable quiet mode when writing output to stdout
# otherwise informational text output would be mixed into the SVG output
options.quiet = True
return options, [infile, outfile] return options, [infile, outfile]