Skip to content
Myr

Fixing issue with subcommands and --help

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

authored by Way, No · committed by Way, No · parent fc560de · 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