Really fix "--help"

This commit is contained in:
Andres Suarez 2015-06-12 20:54:53 -04:00
parent 7e9660efd3
commit a5f6c1c389

View File

@ -51,7 +51,7 @@ commander.on("--help", function () {
each(keys(obj).sort(), function (key) {
if (key[0] === "_") return;
if (obj[key].metadata.optional) key = "[" + key + "]";
if (obj[key].metadata && obj[key].metadata.optional) key = "[" + key + "]";
console.log(" - " + key);
});