Skip to content
Myr

Merge pull request #1107 from shadowspawn/feature/version-listener

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

Update version listener

authored by Tomoaki Abe · committed by GitHub · parents 7c22701, df8d9de · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:index.js+2 added-1 removed
1039 unmodified lines
1040 description = description || 'output the version number';1041 var versionOption = new Option(flags, description);1042 this._versionOptionName = versionOption.long.substr(2) || 'version';1043 this.options.push(versionOption);1044 var self = this;1045 this.on('option:' + this._versionOptionName, function() {1046 process.stdout.write(str + '\n');1046 this._exit(0, 'commander.version', str);1047 self._exit(0, 'commander.version', str);1048 });1049 return this;1050};1051
500 unmodified lines