I have the following test.lua
script:
print("before function")
function calc(n)
print("in function")
print(10*n)
end
I'm trying to execute it from the command line using lua test.lua calc 10
, but the only output I get is:
before function
What should I do to get the following output:
before function
in function
100