mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
don't print help text when there are no input files (#1404)
This commit is contained in:
parent
827bcc33b5
commit
a275037487
4
cli.js
4
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user