Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #20 from calmh/command-required

Mark command parameter required if there is no fallback
  • Loading branch information...
commit 89c0b2c7a06b2562dc0a3ee29719b02e60a67962 2 parents c1a7bc5 + 0aeab9c
@harthur authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  nomnom.js
View
2  nomnom.js
@@ -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;
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.