Mercurial Hosting > luan
diff core/src/luan/cmd_line.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | e25ba7a2e816 |
children | 3e30cf310e56 |
line wrap: on
line diff
--- a/core/src/luan/cmd_line.luan Mon Apr 18 20:40:21 2016 -0600 +++ b/core/src/luan/cmd_line.luan Tue Apr 19 15:54:11 2016 -0600 @@ -1,10 +1,10 @@ -local Luan = require "luan:Luan" +local Luan = require "luan:Luan.luan" local error = Luan.error local ipairs = Luan.ipairs or error() local load_file = Luan.load_file or error() local try = Luan.try or error() -local Table = require "luan:Table" -local Io = require "luan:Io" +local Table = require "luan:Table.luan" +local Io = require "luan:Io.luan" local print = Io.print or error() @@ -20,7 +20,7 @@ end try { function() - local main_file = load_file(file,true) + local main_file = load_file(file) print( main_file( Table.unpack(Luan.arg) ) ) end; catch = function(e)