only show "not enough arguments" n>len(args)

This commit is contained in:
jesopo 2020-01-26 02:00:43 +00:00
parent b83e066dad
commit c3bb46ad23

View file

@ -117,7 +117,7 @@ class Module(ModuleManager.BaseModule):
value = [argument_type.type, value]
found = value
break
elif not error and n > 0:
elif not error and n > len(args):
error = "Not enough arguments"
if error and not first_error: