Skip to content

Commit 6ae3390

Browse files
committed
Cleanup collectUnknownFlags use
1 parent 33c620c commit 6ae3390

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/meow-with-subcommands.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,12 @@ ${isRootCommand ? ` $ ${name} scan create --json` : ''}${isRootCommand ? `\
421421
*/
422422
export function meowOrExit({
423423
argv,
424-
collectUnknownFlags = true,
425424
config,
426425
importMeta,
427426
parentName,
428427
}: {
429428
allowUnknownFlags?: boolean | undefined
430429
argv: readonly string[]
431-
collectUnknownFlags?: boolean | undefined
432430
config: CliCommandConfig
433431
parentName: string
434432
importMeta: ImportMeta
@@ -441,7 +439,7 @@ export function meowOrExit({
441439
argv,
442440
autoHelp: false, // meow will exit(0) before printing the banner.
443441
booleanDefault: undefined, // We want to detect whether a bool flag is given at all.
444-
collectUnknownFlags,
442+
collectUnknownFlags: true,
445443
description: config.description,
446444
flags: config.flags,
447445
help: config.help(command, config),

0 commit comments

Comments
 (0)