checkPlugin: Fix command-line argument parsing bug

This commit is contained in:
Richard Hansen 2021-01-08 18:07:55 -05:00
parent fd3004faad
commit ba1c468865

View file

@ -26,7 +26,7 @@ const pluginPath = `node_modules/${pluginName}`;
console.log(`Checking the plugin: ${pluginName}`);
const optArgs = process.argv.slice(3, 0);
const optArgs = process.argv.slice(3);
// Should we autofix?
const autoFix = optArgs.indexOf('autofix') !== -1;