|
|
@ -3,7 +3,7 @@ if args[1]=="--file" or args[1]=="-f" then
|
|
|
|
local f=loadfile (args[2])
|
|
|
|
local f=loadfile (args[2])
|
|
|
|
dfhack.pcall(f,table.unpack(args,3))
|
|
|
|
dfhack.pcall(f,table.unpack(args,3))
|
|
|
|
elseif args[1]~=nil then
|
|
|
|
elseif args[1]~=nil then
|
|
|
|
local f=load(args[1],'=(lua command)', 't',)
|
|
|
|
local f=load(args[1],'=(lua command)', 't')
|
|
|
|
dfhack.pcall(f,table.unpack(args,2))
|
|
|
|
dfhack.pcall(f,table.unpack(args,2))
|
|
|
|
else
|
|
|
|
else
|
|
|
|
dfhack.interpreter("lua","lua.history")
|
|
|
|
dfhack.interpreter("lua","lua.history")
|
|
|
|