Issue #980 ... improperly truncated --help.

This commit is contained in:
Jeremy Ashkenas
2010-12-26 17:15:55 -08:00
parent f545f18c2d
commit 7ffb7c19fd
2 changed files with 2 additions and 6 deletions

View File

@@ -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);

View File

@@ -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