allow - as an outfile for stdout
This commit is contained in:
parent
df757224ed
commit
226ad92b81
|
@ -325,6 +325,7 @@ def main():
|
|||
data = read_stdin()
|
||||
|
||||
outfd = sys.stdout
|
||||
if outfile == "-": outfile = None
|
||||
if outfile: outfd = open(outfile, "w")
|
||||
process(data, name, outfd)
|
||||
if outfile: outfd.close()
|
||||
|
|
Loading…
Reference in New Issue