mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: require bounded loop-status exit-code watch
This commit is contained in:
parent
fbd441b448
commit
7b03a60503
3 changed files with 13 additions and 0 deletions
|
|
@ -116,6 +116,10 @@ function parseArgs(argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (options.exitCode && options.watch && options.watchCount === null) {
|
||||
throw new Error('--exit-code with --watch requires --watch-count so the process can exit');
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue