aboutsummaryrefslogtreecommitdiff
path: root/bat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bat.lua')
-rw-r--r--bat.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/bat.lua b/bat.lua
index 10ed49d..245eb22 100644
--- a/bat.lua
+++ b/bat.lua
@@ -6,6 +6,7 @@
-- {{{ Grab environment
local tonumber = tonumber
local io = { open = io.open }
+local setmetatable = setmetatable
local math = { floor = math.floor }
local string = {
find = string.find,
@@ -77,3 +78,5 @@ function worker(format, batid)
end
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })