fix: adapt to breaking change in commander

This commit is contained in:
Julian Lam
2022-08-08 17:16:47 -04:00
parent 993b77478e
commit 38bf30c8ca

View File

@@ -19,7 +19,7 @@ const colors = [
];
function humanReadableArgName(arg) {
const nameOutput = arg.name + (arg.variadic === true ? '...' : '');
const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
return arg.required ? `<${nameOutput}>` : `[${nameOutput}]`;
}