Custom target should not affect usage and help message generation

This commit is contained in:
mpeterv
2014-08-25 13:51:08 +04:00
parent b02536d6ba
commit bd5fd00e6c
4 changed files with 8 additions and 8 deletions

View File

@@ -306,7 +306,7 @@ function Argument:_get_default_argname()
end
function Option:_get_default_argname()
return "<" .. (self._target or self:_get_default_target()) .. ">"
return "<" .. self:_get_default_target() .. ">"
end
-- Returns label to be shown in the help message.