Skip to content

Instantly share code, notes, and snippets.

@rjpcomputing
Created January 26, 2011 15:19
Show Gist options
  • Save rjpcomputing/796826 to your computer and use it in GitHub Desktop.
Save rjpcomputing/796826 to your computer and use it in GitHub Desktop.
Lapp Error
require( "pl.lapp" )
function main()
local args = pl.lapp [[
Builds Lua scripts and its modules into a single executable. It uses Squish, so a Squishy file is required.
<squishy_file> (string) Squishy file to use to combine Lua source and modules.
-t,--type (default console) Control if a console is launched. Options: console or gui
-d,--debug (default true) Keep filenames and line numbers in error messages and tracebacks.
-g,--gzip (default false) Compress the source before building executable.
-C,--no-clean Leave the intermediate files after executable creation.
-n,--no-compression No compress of change made to the source code.
]]
end
main()
-- Output
--[[lua: /usr/share/lua/5.1/pl/lapp.lua:228: table index is nil
stack traceback:
/usr/share/lua/5.1/pl/lapp.lua:228: in function </usr/share/lua/5.1/pl/lapp.lua:132>
(tail call): ?
lua2exe.lua:74: in function 'main'
lua2exe.lua:78: in main chunk
[C]: ?]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment