When running ldoc I got the following message; > C:\Users\Thijs\Dropbox\Lua projects\rocks_wrap_test>ldoc > lua: fatal error: `c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:16: no > command line args available > Was this run from a main script? > stack traceback: > [C]: in function 'error' > c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:16: in function > 'check_script_name' > c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:29: in function > 'require_here' > [string "---------------..."]:33: in main chunk' > Content-type: text/plain > > Configuration fatal error: see error log! > c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:16: no command line args > available > Was this run from a main script? > stack traceback: > [C]: in function 'error' > c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:16: in function > 'check_script_name' > c:\users\public\lua\5.1/share/lua/5.1/pl\app.lua:29: in function > 'require_here' > [string "---------------..."]:33: in main chunk > C:\Users\Thijs\Dropbox\Lua projects\rocks_wrap_test> Because of the error "no command line args available" I created a small wrapper test. Wraptest.lua; which only enumerates all command line args. After installing it I get the following results: When executing lua with the script and extra arguments;
> C:\Users\Thijs\Dropbox\Lua projects\rocks_wrap_test>lua wraptest.lua hello > world > 1 hello > 2 world > -1 lua > 0 wraptest.lua > found 4 arguments This is the expected result. When doing it directly using the generated wrapper; > C:\Users\Thijs\Dropbox\Lua projects\rocks_wrap_test>wraptest hello world > found 0 arguments All arguments are gone... 2 questions; 1 - any ideas how to fix it? 2 - why is the wrapper compiled to an executable, why not a simple batch file? Thx. Thijs ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers