diff src/luan/tools/cmd_line.luan @ 136:7e160d2f6d9c

update HttpLib, untested git-svn-id: https://luan-java.googlecode.com/svn/trunk@137 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 11 Jun 2014 09:33:02 +0000
parents 98aba462c422
children
line wrap: on
line diff
--- a/src/luan/tools/cmd_line.luan	Wed Jun 11 06:30:46 2014 +0000
+++ b/src/luan/tools/cmd_line.luan	Wed Jun 11 09:33:02 2014 +0000
@@ -38,15 +38,15 @@
 				return
 			end
 			local cmd = args[i]
-			local fn = load(cmd,"(command line)",true,true)
-			local result = Table.pack( fn() )
+			local stat = load(cmd,"(command line)",true,true)
+			local result = Table.pack( stat() )
 			if result.n > 0 then
 				print( Table.unpack(result,1,result.n) )
 			end
 		elseif arg == "-" then
 			local src = Io.stdin.read_text()
-			local fn = load(src,"stdin")
-			fn()
+			local stdin = load(src,"stdin")
+			stdin()
 			return
 		else
 			standalone_error( "unrecognized option '"..arg.."'" )
@@ -62,8 +62,8 @@
 	for j,v in ipairs(args) do
 		_G.arg[j-i] = v
 	end
-	local fn = load_file(file)
-	fn( Table.unpack(_G.arg) )
+	local main_file = load_file(file)
+	main_file( Table.unpack(_G.arg) )
 end
 if interactive then
 	Debug.debug("> ")