Moved help msg to node-repl
authorvisionmedia <tj@vision-media.ca>
Mon, 4 Jan 2010 16:10:53 +0000 (08:10 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 5 Jan 2010 06:06:18 +0000 (22:06 -0800)
bin/node-repl
lib/repl.js

index b4c60b7..82eb1bc 100755 (executable)
@@ -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();
 
index c887f86..7b2c4d4 100644 (file)
@@ -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;