mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: adapt to breaking change in commander
This commit is contained in:
@@ -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}]`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user