aboutsummaryrefslogtreecommitdiff
path: root/mdir.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mdir.lua')
-rw-r--r--mdir.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdir.lua b/mdir.lua
index 6a5146b..63ce1c2 100644
--- a/mdir.lua
+++ b/mdir.lua
@@ -6,6 +6,7 @@
-- {{{ Grab environment
local io = { popen = io.popen }
+local setmetatable = setmetatable
-- }}}
@@ -42,3 +43,5 @@ function worker(format, mdir)
return {newcount, curcount}
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })