Skip to content

Commit 9626ff9

Browse files
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](#1847) because any user-defined flags are blocked at the command level.
1 parent 1962d19 commit 9626ff9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands/start.command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export class StartCommand extends AbstractCommand {
88
public load(program: CommanderStatic): void {
99
program
1010
.command('start [app]')
11+
.allowUnknownOption()
1112
.option('-c, --config [path]', 'Path to nest-cli configuration file.')
1213
.option('-p, --path [path]', 'Path to tsconfig file.')
1314
.option('-w, --watch', 'Run in watch mode (live-reload).')

0 commit comments

Comments
 (0)