Skip to content
Browse files

required message in red

  • Loading branch information...
1 parent 7910961 commit 2909cd7caddde248627682b39d9d6811871bf584 @harthur committed Mar 17, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 nomnom.js
View
3 nomnom.js
@@ -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);

0 comments on commit 2909cd7

Please sign in to comment.
Something went wrong with that request. Please try again.