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