Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment