diff --git a/bin/help.ts b/bin/help.ts index 1c2c1a7..710f209 100644 --- a/bin/help.ts +++ b/bin/help.ts @@ -41,9 +41,9 @@ function usage(cmd: string, signature?: ExportInfo) { if (signature?.kind === "function" && signature.signatures.length) { const params = signature.signatures[0]!.params for (const param of params) { - let desc = `${param.name}=` - desc += param.default ? `${param.default}` : `<${param.type}>` - out.push(desc) + let desc = param.default ? `[${param.name}=${param.default}]` : `<${param.name}>` + desc += + out.push(desc) } }