Skip to content
Myr

Changed --version short flag to -V

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

so they line up nice still, -V is lame but meh

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 060c5d3 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/commander.js+2 added-2 removed
500 unmodified lines
501502/**503 * Set the program version to `str`.504 *505 * This method auto-registers the "-v, --version" flag505 * This method auto-registers the "-V, --version" flag506 * which will print the version number when passed.507 *508 * @param {String} str509 * @param {String} flags
3 unmodified lines
513514Command.prototype.version = function(str, flags){515 if (0 == arguments.length) return this._version;516 this._version = str;517 flags = flags || '-v, --version';517 flags = flags || '-V, --version';518 this.option(flags, 'output the version number');519 this.on('version', function(){520 console.log(str);521 process.exit(0);
387 unmodified lines