Permalink
Browse files

added some escape characters to showHelp() to bold some text

  • Loading branch information...
dresende committed Mar 25, 2011
1 parent b13f632 commit 07e594ef3d7060d51f2e4a98db8b1eabaa4c17c8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/getopt.js
View
@@ -11,7 +11,7 @@ exports.showHelp = function (title, cb) {
console.log(" %s", title);
console.log(" ------------------");
- console.log(" %s <options>", path.basename(process.argv[path.basename(process.execPath) == process.argv[0] ? 1 : 0]));
+ console.log(" \033[1m%s\033[0m <options>", path.basename(process.argv[path.basename(process.execPath) == process.argv[0] ? 1 : 0]));
console.log("");
var list = [],
@@ -60,7 +60,7 @@ exports.showHelp = function (title, cb) {
}
for (var i = 0; i < list.length; i++) {
- console.log(" -%s %s %s", list[i].opt, list[i].param, list[i].desc);
+ console.log(" \033[1m-%s %s\033[0m %s", list[i].opt, list[i].param, list[i].desc);
}
};
exports.params = function () {

0 comments on commit 07e594e

Please sign in to comment.