diff --git a/packages/cspell/src/commandLint.ts b/packages/cspell/src/commandLint.ts index 7bacdc8bc187..4c9533112a62 100644 --- a/packages/cspell/src/commandLint.ts +++ b/packages/cspell/src/commandLint.ts @@ -99,7 +99,7 @@ export function commandLint(prog: Command): Command { const cliReporter = getReporter({ ...options, fileGlobs }); const lintOptions: LinterOptions = { ...options, fileLists: fileList }; return App.lint(fileGlobs, lintOptions, cliReporter).then((result) => { - if (!fileGlobs.length && !result.files && !result.errors) { + if (!fileGlobs.length && !result.files && !result.errors && !fileList) { spellCheckCommand.outputHelp(); throw new CheckFailed('outputHelp', 1); }