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

Commit

Permalink
Append default values to options help if any.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethyuan committed Feb 11, 2013
1 parent 58a2d75 commit 70a3edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomnom.js
Expand Up @@ -375,10 +375,10 @@ ArgParser.prototype = {
if (!opt.hidden) {
str += " " + opt.string + spaces(longest - opt.string.length) + " ";
if (this._colors) {
str += (opt.help || "").grey;
str += ((opt.help + (opt.default != null ? " [" + opt.default + "]" : "")) || "").grey;
}
else {
str += (opt.help || "")
str += ((opt.help + (opt.default != null ? " [" + opt.default + "]" : "")) || "")
}
str += "\n";
}
Expand Down

0 comments on commit 70a3edf

Please sign in to comment.