Made it so nomsu only runs REPL with -i

This commit is contained in:
Bruce Hill 2017-10-20 15:17:57 -07:00
parent c6819cf1e9
commit 3d81837261
2 changed files with 2 additions and 2 deletions

View File

@ -1017,7 +1017,7 @@ if arg then
c.write = _write c.write = _write
end end
end end
if not args.input or args.flags["-i"] then if args.flags["-i"] then
c:run('require "lib/core.nom"', "stdin") c:run('require "lib/core.nom"', "stdin")
while true do while true do
local buff = "" local buff = ""

View File

@ -693,7 +693,7 @@ if arg
if args.flags["-p"] if args.flags["-p"]
c.write = _write c.write = _write
if not args.input or args.flags["-i"] if args.flags["-i"]
-- REPL -- REPL
c\run('require "lib/core.nom"', "stdin") c\run('require "lib/core.nom"', "stdin")
while true while true