Skip to content
Myr

Merge pull request #156 from noway421/patch-1

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

Fixing issue with subcommands and --help

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 62cd70c, 3a1e7b5 · Browse files · 1 file+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

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:index.js+3 added-1 removed
370 unmodified lines
371 // process argv372 var parsed = this.parseOptions(this.normalize(argv.slice(2)));373 var args = this.args = parsed.args;374 375 var result = this.parseArgs(this.args, parsed.unknown);376377 // executable sub-commands, skip .parseArgs()378 if (this.executables) return this.executeSubCommand(argv, args, parsed.unknown);379378 return this.parseArgs(this.args, parsed.unknown);380 return result;381};382383/**384 * Execute a sub-command executable.
770 unmodified lines