Skip to content

Commit

Permalink
Update start.command.ts to allowUnknownOption
Browse files Browse the repository at this point in the history
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](nestjs#1847) because any user-defined flags are blocked at the command level.
  • Loading branch information
zackdotcomputer committed Aug 15, 2023
1 parent 1962d19 commit 9626ff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/start.command.ts
Expand Up @@ -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).')
Expand Down

0 comments on commit 9626ff9

Please sign in to comment.