- if option:scheme('minlength') then
- if #val < option:scheme('minlength') then
- return false, option:error(ERR.OPT_RANGE(option))
+ val = ( type(val) == "table" and val or { val } )
+ for _, v in ipairs(val) do
+ if option:scheme('minlength') then
+ if #v < option:scheme('minlength') then
+ return false, option:error(ERR.OPT_RANGE(option))
+ end