diff --git a/cli/lib/cli.js b/cli/lib/cli.js index 7a1759d87a9b..46580598c957 100644 --- a/cli/lib/cli.js +++ b/cli/lib/cli.js @@ -587,5 +587,6 @@ module.exports = { if (!module.parent) { logger.error('This CLI module should be required from another Node module') logger.error('and not executed directly') + process.exit(-1) }