Permalink
Browse files

remove extra newlines at end of usage output

  • Loading branch information...
harthur committed May 19, 2013
1 parent 368bd27 commit e60af1f709e095e252052b3c6a1f6afb26d28fd5
Showing with 2 additions and 2 deletions.
  1. +2 −2 nomnom.js
View
@@ -123,7 +123,7 @@ ArgParser.prototype = {
parse : function(argv) {
this.print = this.print || function(str, code) {
- console.log(str + '\n');
+ console.log(str);
process.exit(code || 0);
};
this._help = this._help || "";
@@ -395,7 +395,7 @@ ArgParser.prototype = {
if (this._help) {
str += "\n" + this._help;
}
- return str + "\n";
+ return str;
}
};

0 comments on commit e60af1f

Please sign in to comment.