From 9626ff99bd2a3e38196f436aac5fa371b942d5ed Mon Sep 17 00:00:00 2001 From: Zack Sheppard Date: Tue, 15 Aug 2023 15:43:43 +0100 Subject: [PATCH] Update start.command.ts to allowUnknownOption Commander requires an explicit call to `allowUnknownOption` to allow and not error on options it does not recognize. This causes an issue with [this functionality](https://github.com/nestjs/nest-cli/pull/1847) because any user-defined flags are blocked at the command level. --- commands/start.command.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/start.command.ts b/commands/start.command.ts index 1e0b17ef9..361f48fbd 100644 --- a/commands/start.command.ts +++ b/commands/start.command.ts @@ -8,6 +8,7 @@ export class StartCommand extends AbstractCommand { public load(program: CommanderStatic): void { program .command('start [app]') + .allowUnknownOption() .option('-c, --config [path]', 'Path to nest-cli configuration file.') .option('-p, --path [path]', 'Path to tsconfig file.') .option('-w, --watch', 'Run in watch mode (live-reload).')