Skip to content
Myr

Output version information using process.stdout.write instead of console.log - fixes #246

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

authored by James Warwood · committed by James Warwood · parent 1333365 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
663 unmodified lines
664 this._version = str;665 flags = flags || '-V, --version';666 this.option(flags, 'output the version number');667 this.on('version', function(){668 console.log(str);668 process.stdout.write(str + '\n');669 process.exit(0);670 });671 return this;672};
221 unmodified lines