Commit f47c8f31 authored by nimrod's avatar nimrod
Browse files

Fix the version flag.

Forgot to exit after printing the version. Without a TTY it would exit
anyway, but in an interactive console it hangs.
parent 8c2e5468
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ def main():
    args = parser.parse_args()
    if args.version:
        print("Template version {}.".format(__version__))
        sys.exit()
    infd = args.filename if args.filename else sys.stdin
    outfd = args.output if args.output else sys.stdout
    print(render(infd.read()), file=outfd)