From 7ffb7c19fd9c093da8676a66acc886dbec2dc586 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 26 Dec 2010 17:15:55 -0800 Subject: [PATCH] Issue #980 ... improperly truncated --help. --- lib/command.js | 6 ++---- src/command.coffee | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/command.js b/lib/command.js index c5e6bb2a..743e7439 100644 --- a/lib/command.js +++ b/lib/command.js @@ -255,11 +255,9 @@ }); }; usage = function() { - printLine((new optparse.OptionParser(SWITCHES, BANNER)).help()); - return process.exit(0); + return printLine((new optparse.OptionParser(SWITCHES, BANNER)).help()); }; version = function() { - printLine("CoffeeScript version " + CoffeeScript.VERSION); - return process.exit(0); + return printLine("CoffeeScript version " + CoffeeScript.VERSION); }; }).call(this); diff --git a/src/command.coffee b/src/command.coffee index cade09bd..cdeb1279 100644 --- a/src/command.coffee +++ b/src/command.coffee @@ -208,9 +208,7 @@ forkNode = -> # shown. usage = -> printLine (new optparse.OptionParser SWITCHES, BANNER).help() - process.exit 0 # Print the `--version` message and exit. version = -> printLine "CoffeeScript version #{CoffeeScript.VERSION}" - process.exit 0