Browse Source

Moved help msg to node-repl

v0.7.4-release
visionmedia 15 years ago
committed by Ryan Dahl
parent
commit
a650138ebf
  1. 1
      bin/node-repl
  2. 3
      lib/repl.js

1
bin/node-repl

@ -5,6 +5,7 @@ puts("Welcome to the Node.js REPL.");
puts("Enter ECMAScript at the prompt."); puts("Enter ECMAScript at the prompt.");
puts("Tip 1: Use 'rlwrap node-repl' for a better interface"); puts("Tip 1: Use 'rlwrap node-repl' for a better interface");
puts("Tip 2: Type Control-D to exit."); puts("Tip 2: Type Control-D to exit.");
puts("Type '.help' for options.");
require('repl').start(); require('repl').start();

3
lib/repl.js

@ -3,9 +3,6 @@
var sys = require('sys'); var sys = require('sys');
sys.puts("Type '.help' for options.");
var buffered_cmd = ''; var buffered_cmd = '';
var trimmer = /^\s*(.+)\s*$/m; var trimmer = /^\s*(.+)\s*$/m;
var scopedVar = /^\s*var\s*([_\w\$]+)(.*)$/m; var scopedVar = /^\s*var\s*([_\w\$]+)(.*)$/m;

Loading…
Cancel
Save