From a275037487d8738d9ab12c09baf221db44c95a5e Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Thu, 13 Jul 2017 11:25:52 -0700 Subject: [PATCH] don't print help text when there are no input files (#1404) --- cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index f0ccf7be..dd444070 100644 --- a/cli.js +++ b/cli.js @@ -231,9 +231,9 @@ cli.main = function() { cli.scanFiles(); if (env.sourceFiles.length === 0) { - console.log('There are no input files to process.\n'); + console.log('There are no input files to process.'); - return cli.printHelp(); + return Promise.resolve(0); } else { return cli.createParser() .parseFiles()