added some tests for usage generation

This commit is contained in:
mpeterv
2014-01-21 23:02:58 +04:00
parent a7330f3951
commit ba095896ac
2 changed files with 91 additions and 0 deletions

View File

@@ -93,6 +93,10 @@ function Argument:get_arg_usage(argname)
while i <= math.min(self.maxargs, 3) do
table.insert(buf, "[" .. argname .. "]")
i = i+1
if self.maxargs == math.huge then
break
end
end
if i < self.maxargs then