From 3d81837261ff0a3b3fba8d59243c06fee8d650f4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Oct 2017 15:17:57 -0700 Subject: [PATCH] Made it so nomsu only runs REPL with -i --- nomsu.lua | 2 +- nomsu.moon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomsu.lua b/nomsu.lua index 9b4b2f1..aecb6fe 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -1017,7 +1017,7 @@ if arg then c.write = _write end end - if not args.input or args.flags["-i"] then + if args.flags["-i"] then c:run('require "lib/core.nom"', "stdin") while true do local buff = "" diff --git a/nomsu.moon b/nomsu.moon index 1f5c05d..9ea8353 100755 --- a/nomsu.moon +++ b/nomsu.moon @@ -693,7 +693,7 @@ if arg if args.flags["-p"] c.write = _write - if not args.input or args.flags["-i"] + if args.flags["-i"] -- REPL c\run('require "lib/core.nom"', "stdin") while true