mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 19:12:19 +00:00
added some tests for usage generation
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user