Skip to content
Myr

removed listening for "close" on --help

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

this was breaking for me on 0.4.x and 0.6.x

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 2127275 · Browse files · 1 file+2 added−5 removed
This commit

State

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

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:lib/commander.js+2 added-5 removed
915 unmodified lines
916 */917918exports.option('-h, --help', 'output usage information');919exports.on('help', function(){920 process.stdout.write(this.helpInformation());920 exports.emit('--help');922 process.stdout.destroySoon();923 process.stdout.on('close', function(){924 process.exit(0);925 });921 process.stdout.write(this.helpInformation());922 process.exit(0);923});