Skip to content
Myr

remove invalid .version() defaulting

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent f0529b1 · Browse files · 2 files+0 added−25 removed
This commit

State

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

Diff stats

2 files+0 added−25 removed

  • tests:+0 added−19 removed
  • other:+0 added−6 removed

2 files+0 added−25 removed

modified:lib/commander.js-6 removed
343 unmodified lines
344 this.rawArgs = argv;345346 // guess name347 if (!this.name) this.name = basename(argv[1]);348 // guess version349 if (!this._version) {350 try {351 this.version(require('../package.json').version);352 } catch(e) {}353 }348 // process argv349 var parsed = this.parseOptions(this.normalize(argv.slice(2)));350 this.args = parsed.args;351 return this.parseArgs(this.args, parsed.unknown);
691 unmodified lines
deleted:test/test.packagejsonversion.js-19 removed