Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #156 from noway421/patch-1

Fixing issue with subcommands and --help
  • Loading branch information...
commit 976640604253a373241d85ba057098d99526c63d 2 parents 62cd70c + 3a1e7b5
@tj authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 index.js
View
4 index.js
@@ -372,10 +372,12 @@ Command.prototype.parse = function(argv){
var parsed = this.parseOptions(this.normalize(argv.slice(2)));
var args = this.args = parsed.args;
+ var result = this.parseArgs(this.args, parsed.unknown);
+
// executable sub-commands, skip .parseArgs()
if (this.executables) return this.executeSubCommand(argv, args, parsed.unknown);
- return this.parseArgs(this.args, parsed.unknown);
+ return result;
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.