projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3d9e4
)
Moved help msg to node-repl
author
visionmedia
<tj@vision-media.ca>
Mon, 4 Jan 2010 16:10:53 +0000
(08:10 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 5 Jan 2010 06:06:18 +0000
(22:06 -0800)
bin/node-repl
patch
|
blob
|
history
lib/repl.js
patch
|
blob
|
history
diff --git
a/bin/node-repl
b/bin/node-repl
index
b4c60b7
..
82eb1bc
100755
(executable)
--- 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
c887f86
..
7b2c4d4
100644
(file)
--- 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;