Skip to content

Commit

Permalink
Make sure usage output from help flag ends with a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 24, 2024
1 parent 7682c8b commit 3dfe9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions busted/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3dfe9df

Please sign in to comment.