The LuxiniaParam class stores the original list of arguments with which luxinia was called. The string of the commandline execution, i.e.:
luxinia.exe -abc test 1 -f "hello world" --word 13will be converted in a array that is stored in a global variable named "arg", which will look like this:
arg[1] = "luxinia.exe" arg[2] = "-abc" arg[3] = "test" arg[4] = "1" arg[5] = "-f" arg[6] = "hello world" arg[7] = "þ1þ arg[8] = "13"The LuxiniaParam class also provides a set of utility functions to simplify the processing of commandline options. The arguments with which luxinia was called are put into a table that can be accessed and modified. I.e. the example above will make create a table structure that looks like this:
env["a"] = {"test","1"} env["b"] = {"test","1"} env["c"] = {"test","1"} env["f"] = {"hello world"} env["word"] = {"13"}You can change values in this table with the given getters and setters. Additionally, the LuxiniaParam class can help to describe the commandline options.
Adds a trigger description to the known descriptions. The known descriptions will be listed here. If your trigger description is not listed here, please make sure that the autodocc creation is done right after you have registered the trigger.
returns an argument table for the given triggername.
sets a new table value for the given triggername. Pass nil to delete the triggername value.
for index, trigger, description in LuxiniaParam.iterator() do print(index,trigger,description) end