Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Commit 85d7d04

Browse files
committed
fix: move set option to commander global options
1 parent a50b2d9 commit 85d7d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cli/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ exports.run = () => {
2424

2525
program
2626
.option('-b, --browser <browser>', 'run test only in specified browser', collect)
27+
.option('-s, --set <set>', 'set to run', collect)
2728
.option('--grep <pattern>', 'run only suites matching the pattern', RegExp);
2829

2930
program.command('update [paths...]')
@@ -36,7 +37,6 @@ exports.run = () => {
3637
program.command('test [paths...]')
3738
.allowUnknownOption()
3839
.option('-r, --reporter <reporter>', 'test result reporter (flat by default)', collect)
39-
.option('-s, --set <set>', 'set to run', collect)
4040
.description('run tests')
4141
.on('--help', () => {
4242
console.log(' Reporters:');
@@ -104,7 +104,7 @@ function mkRunFn(gemini, method, globalOpts) {
104104
handleUncaughtExceptions();
105105

106106
return gemini[method](paths, {
107-
sets: opts.set,
107+
sets: globalOpts.set,
108108
reporters: parseReporterOptions(opts),
109109
grep: globalOpts.grep,
110110
browsers: globalOpts.browser,

0 commit comments

Comments
 (0)