We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b9ce68 commit 85c6e70Copy full SHA for 85c6e70
@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,
@@ -198,7 +204,9 @@ async function main(options) {
198
204
const output = format(report, {color: flags.color});
199
205
200
206
if (!flags.quiet) {
201
- console.log(output);
207
+ if (!report.valid || report.warningCount > 0 || flags.verbose) {
208
+ console.log(output);
209
+ }
202
210
}
203
211
212
if (!report.valid) {
0 commit comments