From c7f5f78ac0171faefda7541391053e690ec44ad8 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 2 Aug 2020 10:35:00 +1200 Subject: [PATCH] Allow partial argument descriptions (#1323) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5dacc8d88..538da1499 100644 --- a/index.js +++ b/index.js @@ -1550,7 +1550,7 @@ Read more on https://git.io/JJc0W`); desc.push('Arguments:'); desc.push(''); this._args.forEach((arg) => { - desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name], descriptionWidth, width + 4)); + desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name] || '', descriptionWidth, width + 4)); }); desc.push(''); }