Skip to content

Node.js based forum software built for the modern web

fix: adapt to breaking change in commander

Julian Lam38bf30c8cadf
diff --git a/src/cli/colors.js b/src/cli/colors.js
index 71723ae42f..7ddd188898 100644
--- a/src/cli/colors.js
+++ b/src/cli/colors.js
@@ -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}]`;
}