Skip to content

Commit c7f5f78

Browse files
authored
Allow partial argument descriptions (#1323)
1 parent f47bdf5 commit c7f5f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ Read more on https://git.io/JJc0W`);
15501550
desc.push('Arguments:');
15511551
desc.push('');
15521552
this._args.forEach((arg) => {
1553-
desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name], descriptionWidth, width + 4));
1553+
desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name] || '', descriptionWidth, width + 4));
15541554
});
15551555
desc.push('');
15561556
}

0 commit comments

Comments
 (0)