Hi there,
First of all thank you for the hard work on LuaRT!
I may have found a bug in command-line handling for Lua programs compiled with rtc.
In addition to the global arg table, ... normally also contains the command-line arguments, however this does not seem to work when a Lua program is compiled with rtc.
The following code can be used to reproduce this issue:
print("arg:", table.unpack(arg))
print("...:", ...)
If we save this script as argtest.lua and run it using regular Lua 5.4 as follows:
lua argtest.lua test
The results are as follows:
arg: test
...: test
If the program is then compiled to an executable, the results are:
arg: test
...:
Compiling the program with a static or dynamic runtime does not make a difference.