Skip to content

Commit

Permalink
Pass --tags correctly, remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jun 7, 2021
1 parent 8a0d5e8 commit dbcb177
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli/argv_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] [<GLOB|DIR|FILE[:LINE]>...]')
Expand Down

0 comments on commit dbcb177

Please sign in to comment.