From 3dfe9df6d348063ff85a65bd0073ea32e6d4cd8b Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 24 Oct 2024 14:07:49 +0300 Subject: [PATCH] Make sure usage output from help flag ends with a newline --- busted/runner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/busted/runner.lua b/busted/runner.lua index 24d4f752..ad8257af 100644 --- a/busted/runner.lua +++ b/busted/runner.lua @@ -42,13 +42,13 @@ return function(options) end if cliArgs.help then - io.stdout:write(cliArgs.helpText) + io.stdout:write(cliArgs.helpText .. '\n') exit(0, forceExit) end if cliArgs.version then -- Return early if asked for the version - print(busted.version) + io.stdout:write(busted.version .. '\n') exit(0, forceExit) end