lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13-01-03 07:47 PM, František Fuka wrote:
Hello,

is there a way for a piece of Lua code to detect if it has been called as a standalone script from command line, or loaded during require() or dofile()?


Hi František
What about arg[0], that should be the scripts name-Patrick