diff --git a/hystricomorph.py b/hystricomorph.py index e243799..7dd4660 100644 --- a/hystricomorph.py +++ b/hystricomorph.py @@ -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()