arguments from the commandline lua open copmuters code example
Example: lua command line arguments
-- Display the command line parameters
print(arg[0]) -- Name of the script
print(arg[1]) -- First parameter
print(arg[2]) -- Second parameter