Skip to content

Commit 1282e8f

Browse files
committed
refactor(cli): optional arg in optionDescriptions
1 parent 39fc99d commit 1282e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ export const options: Options<Required<UserProvidedArgs>> = {
235235
},
236236
}
237237

238-
export const optionDescriptions = (): string[] => {
239-
const entries = Object.entries(options).filter(([, v]) => !!v.description)
238+
export const optionDescriptions = (opts = options): string[] => {
239+
const entries = Object.entries(opts).filter(([, v]) => !!v.description)
240240
const widths = entries.reduce(
241241
(prev, [k, v]) => ({
242242
long: k.length > prev.long ? k.length : prev.long,

0 commit comments

Comments
 (0)