function string:flag_name() if self:sub(1, 2) ~= "--" then return nil end return self:sub(3) end function string:split(sep) splits = {} for split in self:gmatch("[^" .. sep .. "]+") do splits[#splits + 1] = split end return splits end return { tests = { function() local path = 'some/path/here' assert.equals({ 'some', 'path', 'here' }, path.split("/")) end, } }