We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39fc99d commit 1282e8fCopy full SHA for 1282e8f
src/node/cli.ts
@@ -235,8 +235,8 @@ export const options: Options<Required<UserProvidedArgs>> = {
235
},
236
}
237
238
-export const optionDescriptions = (): string[] => {
239
- const entries = Object.entries(options).filter(([, v]) => !!v.description)
+export const optionDescriptions = (opts = options): string[] => {
+ const entries = Object.entries(opts).filter(([, v]) => !!v.description)
240
const widths = entries.reduce(
241
(prev, [k, v]) => ({
242
long: k.length > prev.long ? k.length : prev.long,
0 commit comments