Permalink
Browse files

Merge pull request #20 from calmh/command-required

Mark command parameter required if there is no fallback
  • Loading branch information...
2 parents c1a7bc5 + 0aeab9c commit 89c0b2c7a06b2562dc0a3ee29719b02e60a67962 @harthur committed Jul 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 nomnom.js
View
@@ -153,6 +153,8 @@ ArgParser.prototype = {
if (this.fallback) {
_(this.specs).extend(this.fallback.specs);
this._help = this.fallback.help;
+ } else {
+ this.specs.command.required = true;
}
}
}

0 comments on commit 89c0b2c

Please sign in to comment.