Skip to content
Myr

Fixed `Commander#args`

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 778faa3 · Browse files · 2 files+3 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

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:examples/pizza+1 added
23 unmodified lines
24 ? 'marble'25 : program.cheese || 'no';2627console.log(' - %s cheese', cheese);28console.log(program.args);
modified:lib/commander.js+2 added-1 removed
312 unmodified lines
313 process.exit(0);314 });315316 // process argv317 return this.parseArgs(this.parseOptions(this.normalize(argv)));317 this.args = this.parseOptions(this.normalize(argv));318 return this.parseArgs(this.args);319};320321/**322 * Normalize `args`, splitting joined short flags. For example
565 unmodified lines