Merge pull request #1740 from zertosh/cli-fixes

Really fix "--help"
This commit is contained in:
Sebastian McKenzie 2015-06-13 01:56:58 +01:00
commit 7c090c8580

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);
});