Skip to content

Commit

Permalink
feat: Adjust the meaning of --quiet to show issues. (#4763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Aug 29, 2023
1 parent 91ef1c3 commit 9a5bae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cspell/src/app/__snapshots__/app.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ exports[`Validate cli > app 'no-args' Expect Error: 'outputHelp' 1`] = `
" --no-progress Turn off progress messages",
" --no-summary Turn off summary message in console.",
" -s, --silent Silent mode, suppress error messages.",
" --quiet An alias of --silent",
" --quiet Only show spelling issues or errors.",
" --fail-fast Exit after first file with an issue or error.",
" -r, --root <root folder> Root directory, defaults to current directory.",
" --relative Issues are displayed relative to root.",
Expand Down
7 changes: 6 additions & 1 deletion packages/cspell/src/app/commandLint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ export function commandLint(prog: Command): Command {
.option('--no-progress', 'Turn off progress messages')
.option('--no-summary', 'Turn off summary message in console.')
.option('-s, --silent', 'Silent mode, suppress error messages.')
.addOption(new CommanderOption('--quiet', 'An alias of --silent').implies({ silent: true }))
.addOption(
new CommanderOption('--quiet', 'Only show spelling issues or errors.').implies({
summary: false,
progress: false,
}),
)
.option('--fail-fast', 'Exit after first file with an issue or error.')
.addOption(new CommanderOption('--no-fail-fast', 'Process all files even if there is an error.').hideHelp())
.option('-r, --root <root folder>', 'Root directory, defaults to current directory.')
Expand Down

0 comments on commit 9a5bae5

Please sign in to comment.