lua-users home
lua-l archive

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


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()?

--
-- Frantisek Fuka
(yes, that IS my real name)

-- My Google+ profile
-- Personal Homepage
-- Jabber/GoogleTalk ID: fuka@fuxoft.cz