From a650138ebf96dda08157e94481fe1b5943602ab0 Mon Sep 17 00:00:00 2001 From: visionmedia Date: Mon, 4 Jan 2010 08:10:53 -0800 Subject: [PATCH] Moved help msg to node-repl --- bin/node-repl | 1 + lib/repl.js | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/node-repl b/bin/node-repl index b4c60b7428..82eb1bca12 100755 --- a/bin/node-repl +++ b/bin/node-repl @@ -5,6 +5,7 @@ puts("Welcome to the Node.js REPL."); puts("Enter ECMAScript at the prompt."); puts("Tip 1: Use 'rlwrap node-repl' for a better interface"); puts("Tip 2: Type Control-D to exit."); +puts("Type '.help' for options."); require('repl').start(); diff --git a/lib/repl.js b/lib/repl.js index c887f86bdb..7b2c4d44d9 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -3,9 +3,6 @@ var sys = require('sys'); -sys.puts("Type '.help' for options."); - - var buffered_cmd = ''; var trimmer = /^\s*(.+)\s*$/m; var scopedVar = /^\s*var\s*([_\w\$]+)(.*)$/m;