Skip to content
Myr

fix nohelp test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by zhiyelee · committed by zhiyelee · parent 1559b3e · Browse files · 4 files+18 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+18 added−15 removed

  • tests:+12 added−12 removed
  • other:+6 added−3 removed

4 files+18 added−15 removed

modified:test/test.command.help.js-4 removed
modified:test/test.command.nohelp.js+12 added-8 removed
modified:index.js+5 added-2 removed
11/**2 * Module dependencies.3 */4
1009 unmodified lines
1014 * @api public1015 */10161017Command.prototype.outputHelp = function(cb) {1019 if (!cb) cb = function(passthru) { return passthru; } //supply benign callback if none specified1018 if (!cb) {1019 cb = function(passthru) {1020 return passthru;1021 }1022 }1023 process.stdout.write(cb(this.helpInformation()));1024 this.emit('--help');1025};1026
84 unmodified lines
modified:package.json+1 added-1 removed