Use output param for generating layout file
This commit is contained in:
parent
36c2218065
commit
34e06cace5
|
@ -350,11 +350,14 @@ def main():
|
||||||
l.parseArgs()
|
l.parseArgs()
|
||||||
if l.x and l.y:
|
if l.x and l.y:
|
||||||
l.fillDefault(l.x, l.y)
|
l.fillDefault(l.x, l.y)
|
||||||
|
if l.output:
|
||||||
|
with open(l.output, "w") as f:
|
||||||
|
f.write(str(l))
|
||||||
|
else:
|
||||||
print(l)
|
print(l)
|
||||||
elif l.input:
|
elif l.input:
|
||||||
l.parse(l.input)
|
l.parse(l.input)
|
||||||
l.render()
|
l.render()
|
||||||
print(str(l))
|
|
||||||
else:
|
else:
|
||||||
l.argparser.print_usage()
|
l.argparser.print_usage()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue