Arg returns directory path and nothing else
Posted: Sun May 27, 2018 8:26 am
Hey. Maybe it's just to early in the morning for me right now but for some reason I can't get behind it:
Why is the output the directory path instead of the passed variables in the foo function arguments?
Thanks for the help. (LÖVE 11.1, Atom Editor, Win10).
(I feel so stupid)
Code: Select all
-- Conf.lua
function love.conf(t)
t.console = true
end
-- main.lua
local function foo(...)
for _,v in ipairs(arg) do
print(v)
end
end
foo("Hello", "you", 1, 2, 3)
-- Output: C:\Users\Lars\Desktop/Test
Thanks for the help. (LÖVE 11.1, Atom Editor, Win10).
(I feel so stupid)