From ac9e78a6130d896510f186cc8f8ed5046cac45be Mon Sep 17 00:00:00 2001 From: warmist Date: Wed, 26 Sep 2012 08:39:07 +0300 Subject: [PATCH] Fixed dfhack.interpreter argument order The argument order was incorrect. See: https://github.com/angavrilov/dfhack/blob/master/library/lua/dfhack.lua#L222 --- LUA_API.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA_API.rst b/LUA_API.rst index b098aa054..f532d2212 100644 --- a/LUA_API.rst +++ b/LUA_API.rst @@ -488,7 +488,7 @@ Input & Output lock. Using an explicit ``dfhack.with_suspend`` will prevent this, forcing the function to block on input with lock held. -* ``dfhack.interpreter([prompt[,env[,history_filename]]])`` +* ``dfhack.interpreter([prompt[,history_filename[,env]]])`` Starts an interactive lua interpreter, using the specified prompt string, global environment and command-line history file.