From af689b625c01e864d10798c9c523e4ec2dc33e7b Mon Sep 17 00:00:00 2001 From: macbre Date: Tue, 28 May 2024 21:19:31 +0100 Subject: [PATCH] bin/phantomas.js: use process.exit() --- bin/phantomas.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/phantomas.js b/bin/phantomas.js index fe1923472..2e6756bad 100755 --- a/bin/phantomas.js +++ b/bin/phantomas.js @@ -22,8 +22,7 @@ let options = parseArgv(process.argv); if (typeof options.url !== "string" && typeof options.config === "undefined") { debug("URL not provided - show help and leave"); getProgram().outputHelp(); - process.exitCode = 1; - return; + process.exit(1); } url = options.url;