We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e4e68 commit 139e665Copy full SHA for 139e665
@commitlint/cli/src/cli.js
@@ -79,6 +79,12 @@ const flags = {
79
description: 'toggle console output',
80
type: 'boolean'
81
},
82
+ verbose: {
83
+ alias: 'vb',
84
+ default: false,
85
+ description: 'show console output even on success',
86
+ type: 'boolean'
87
+ },
88
to: {
89
alias: 't',
90
default: null,
@@ -207,7 +213,9 @@ async function main(options) {
207
213
const output = format(report, {color: flags.color});
208
214
209
215
if (!flags.quiet) {
210
- console.log(output);
216
+ if (!report.valid || report.warningCount > 0 || flags.verbose) {
217
+ console.log(output);
218
+ }
211
219
}
212
220
221
if (!report.valid) {
0 commit comments