mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: adapt to breaking change in commander
This commit is contained in:
@@ -19,7 +19,7 @@ const colors = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
function humanReadableArgName(arg) {
|
function humanReadableArgName(arg) {
|
||||||
const nameOutput = arg.name + (arg.variadic === true ? '...' : '');
|
const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
|
||||||
|
|
||||||
return arg.required ? `<${nameOutput}>` : `[${nameOutput}]`;
|
return arg.required ? `<${nameOutput}>` : `[${nameOutput}]`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user