mirror of
https://github.com/ksherlock/hystricomorph.git
synced 2025-02-17 04:30:58 +00:00
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…
x
Reference in New Issue
Block a user