Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
required message in red
Browse files Browse the repository at this point in the history
  • Loading branch information
harthur committed Mar 17, 2013
1 parent 7910961 commit 2909cd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomnom.js
Expand Up @@ -255,7 +255,8 @@ ArgParser.prototype = {
// exit if required arg isn't present
this.specs.forEach(function(opt) {
if (opt.required && options[opt.name] === undefined) {
this.print("\n" + opt.name + " argument is required\n" + this.getUsage(), 1);
var msg = (opt.name + " argument is required").red;
this.print("\n" + msg + "\n" + this.getUsage(), 1);
}
}, this);

Expand Down

0 comments on commit 2909cd7

Please sign in to comment.