Avoid printing space at the end of line

This commit is contained in:
mpeterv
2015-03-13 15:40:24 +03:00
parent 01cc387863
commit 476ad19de8
3 changed files with 33 additions and 33 deletions

View File

@@ -167,7 +167,7 @@ do
if param then
local help = self:flag()
:description "Show this help message and exit. "
:description "Show this help message and exit."
:action(function()
io.stdout:write(self:get_help() .. "\n")
os.exit(0)
@@ -581,7 +581,7 @@ function Parser:get_help()
table.insert(blocks, self._description)
end
local labels = {"Arguments: ", "Options: ", "Commands: "}
local labels = {"Arguments:", "Options:", "Commands:"}
for i, elements in ipairs{self._arguments, self._options, self._commands} do
if #elements > 0 then