From a20e0ce80999c7cee5dbb1a07be96d563d7e868d Mon Sep 17 00:00:00 2001 From: Alko89 Date: Sun, 11 Dec 2022 12:01:58 +0100 Subject: [PATCH] feat: Allow passing arguments to nest start --- commands/start.command.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/start.command.ts b/commands/start.command.ts index d171b8f71..b40ccb548 100644 --- a/commands/start.command.ts +++ b/commands/start.command.ts @@ -1,4 +1,5 @@ import { Command, CommanderStatic } from 'commander'; +import { getRemainingFlags } from '../lib/utils/remaining-flags'; import { AbstractCommand } from './abstract.command'; import { Input } from './command.input'; @@ -74,7 +75,13 @@ export class StartCommand extends AbstractCommand { const inputs: Input[] = []; inputs.push({ name: 'app', value: app }); - await this.action.handle(inputs, options); + const flags = getRemainingFlags(program); + + try { + await this.action.handle(inputs, options, flags); + } catch (err) { + process.exit(1); + } }); } }