From dbcb1778a2e80acd39d92113811d61d13560fd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aslak=20Helles=C3=B8y?= Date: Mon, 7 Jun 2021 10:08:24 +0100 Subject: [PATCH] Pass --tags correctly, remove duplication --- src/cli/argv_parser.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli/argv_parser.ts b/src/cli/argv_parser.ts index 1a80381fc..fd867ff8a 100644 --- a/src/cli/argv_parser.ts +++ b/src/cli/argv_parser.ts @@ -102,6 +102,11 @@ const ArgvParser = { parse(argv: string[]): IParsedArgv { const program = new Command(path.basename(argv[1])) + // We want to be in full control over when the process exits. + // This is important for other tools using Cucumber as a library, + // such as https://github.com/cucumber/cucumber-electron + program.exitOverride() + program .storeOptionsAsProperties(false) .usage('[options] [...]')