Merging upstream version 1.2.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9ce9cc1418
commit
cc381791fc
340 changed files with 71346 additions and 6734 deletions
|
@ -122,6 +122,9 @@ function Getopt:add(short, long, default, help, extensions)
|
|||
elseif name == "" then
|
||||
error("name (long|short) needs to be set")
|
||||
end
|
||||
if short and (type(short) ~= "string" or #short ~= 1) then
|
||||
error("short needs to be a string of length 1")
|
||||
end
|
||||
|
||||
if self._opt[name] then
|
||||
error("option "..name.." alredy exists")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue