comparison core/src/luan/cmd_line.luan @ 322:f8ece87df2b1

minor fixes git-svn-id: https://luan-java.googlecode.com/svn/trunk@323 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 08 Feb 2015 22:03:27 +0000
parents 7f7708e8fdd4
children cd2924a1052c
comparison
equal deleted inserted replaced
321:7f7708e8fdd4 322:f8ece87df2b1
3 local load = Luan.load 3 local load = Luan.load
4 local load_file = Luan.load_file 4 local load_file = Luan.load_file
5 require "luan:String" -- for String methods 5 require "luan:String" -- for String methods
6 local Table = require "luan:Table" 6 local Table = require "luan:Table"
7 local Io = require "luan:Io" 7 local Io = require "luan:Io"
8 local print = Io.print
8 local Debug = require "luan:Debug" 9 local Debug = require "luan:Debug"
9 10
10 11
11 local standalone_usage = [=[ 12 local standalone_usage = [=[
12 usage: java luan.Luan [options] [script [args]] 13 usage: java luan.Luan [options] [script [args]]
62 return 63 return
63 end 64 end
64 i = i + 1 65 i = i + 1
65 end 66 end
66 end 67 end
67 if showVersion then print(_VERSION) end 68 if showVersion then print(Luan.VERSION) end
68 if i <= #args then 69 if i <= #args then
69 local file = args[i] 70 local file = args[i]
70 local arg = {} 71 local arg = {}
71 for j,v in ipairs(args) do 72 for j,v in ipairs(args) do
72 arg[j-i] = v 73 arg[j-i] = v