diff --git a/lib/config-validator.ts b/lib/config-validator.ts index cccdb1a4f426b9a1e26cef37a5b9fb6a4ae59a4f..eb2ca7a97795dc6a590a3e9497c2371da2227afc 100644 --- a/lib/config-validator.ts +++ b/lib/config-validator.ts @@ -62,7 +62,7 @@ type PackageJson = { const strictArgIndex = process.argv.indexOf('--strict'); const strict = strictArgIndex >= 0; if (strict) { - process.argv.splice(strictArgIndex); + process.argv.splice(strictArgIndex, 1); } if (process.argv.length > 2) { for (const file of process.argv.slice(2)) {