Use output param for generating layout file

This commit is contained in:
Florian Festi 2016-03-28 12:16:06 +02:00
parent 36c2218065
commit 34e06cace5
1 changed files with 5 additions and 2 deletions

View File

@ -350,11 +350,14 @@ def main():
l.parseArgs()
if l.x and l.y:
l.fillDefault(l.x, l.y)
print(l)
if l.output:
with open(l.output, "w") as f:
f.write(str(l))
else:
print(l)
elif l.input:
l.parse(l.input)
l.render()
print(str(l))
else:
l.argparser.print_usage()