mirror of
https://github.com/ksherlock/hystricomorph.git
synced 2025-08-05 17:25:27 +00:00
allow - as an outfile for stdout
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user