Skip to content

Args Overhaul and Code Redundancy Reduction

Compare
Choose a tag to compare
@tilkinsc tilkinsc released this 05 Jan 19:54
· 290 commits to master since this release
4747fcc

This build uses lua5.3.4 which was compiled with -O2 -g0 and lua53.dll

Licenses included with the src.

  • Cleaned up code majorly
  • Now have the option to pass args as a tuple to files and -l's
  • Added -b[a,b,c] feature for args ^
  • Switched arguments table to 'arg' to be compatible
  • Works much better with LuaRocks with minimal modification
  • Much better error debugging
  • Prepared to adopt luajit
  • Comment clarifications and updates

Includes testing.lua, which prints out arguments inputted using the -n switch at the end. It displays use of the -D switch using the 'test' variable print. It tries to call an invalid function for error testing display. It now will print contents of a tuple if any and some debug data about the tables.

Instructions:
Make a folder in your C:\Program Files\ or where ever and make a 'bin' folder. Shove lua.exe, luaw.exe, and luaadd.dll into it (if need-be lua53.dll). Add this 'bin' folder to your path. C:\Program Files\LuaConsole\bin, for example. Or just use the wiki's method and shove them into C:\Windows\System32.

Use luaw when you want to do stuff in lua and use the interpreter.

If you are a Linux user and you are on this page to get binaries there is something wrong. (Use build.sh in the root after getting source)