Skip to content

Commit

Permalink
Changed --version short flag to -V
Browse files Browse the repository at this point in the history
so they line up nice still, -V is lame but meh
  • Loading branch information
tj committed Oct 31, 2011
1 parent 060c5d3 commit 9656c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commander.js
Expand Up @@ -502,7 +502,7 @@ Command.prototype.unknownOption = function(flag){
/**
* Set the program version to `str`.
*
* This method auto-registers the "-v, --version" flag
* This method auto-registers the "-V, --version" flag
* which will print the version number when passed.
*
* @param {String} str
Expand All @@ -514,7 +514,7 @@ Command.prototype.unknownOption = function(flag){
Command.prototype.version = function(str, flags){
if (0 == arguments.length) return this._version;
this._version = str;
flags = flags || '-v, --version';
flags = flags || '-V, --version';
this.option(flags, 'output the version number');
this.on('version', function(){
console.log(str);
Expand Down

0 comments on commit 9656c37

Please sign in to comment.