Skip to content

Commit

Permalink
Add missing semi-colons for linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Sorohan committed Jan 30, 2018
1 parent 92d6e49 commit 06451e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -855,8 +855,8 @@ Command.prototype.version = function(str, flags) {
if (arguments.length === 0) return this._version;
this._version = str;
flags = flags || '-V, --version';
var longOptIndex = flags.indexOf('--')
this._versionOptionName = ~longOptIndex ? flags.substr(longOptIndex + 2) : 'version'
var longOptIndex = flags.indexOf('--');
this._versionOptionName = ~longOptIndex ? flags.substr(longOptIndex + 2) : 'version';
this.option(flags, 'output the version number');
this.on('option:' + this._versionOptionName, function() {
process.stdout.write(str + '\n');
Expand Down

0 comments on commit 06451e3

Please sign in to comment.