From e822e8cfb9d7134f9114dfcdd002a427152ead83 Mon Sep 17 00:00:00 2001 From: satyr Date: Sat, 27 Apr 2013 16:26:04 +0900 Subject: [PATCH] bared the default REPL (#212) --- lib/command.js | 1 + src/command.co | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/command.js b/lib/command.js index 99e5595f8..addb94557 100755 --- a/lib/command.js +++ b/lib/command.js @@ -85,6 +85,7 @@ default: break; case !require('tty').isatty(0): say(version() + '\n' + help() + '\n'); + o.bare = true; repl(); break; default: diff --git a/src/command.co b/src/command.co index bcd80fe4e..caf6144a4 100644 --- a/src/command.co +++ b/src/command.co @@ -67,6 +67,7 @@ default compileScripts! case require \tty .isatty 0 say version! + \\n + help! + \\n + o.bare = true repl! default compileStdin!