Skip to content

Commit 05ae6c3

Browse files
authored
fix: correct return code for fail-on severity option (#3138)
Signed-off-by: u-ways <[email protected]>
1 parent 9c9610b commit 05ae6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/grype/cli/options/grype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (o *Grype) AddFlags(flags clio.FlagSet) {
113113

114114
flags.StringVarP(&o.FailOn,
115115
"fail-on", "f",
116-
fmt.Sprintf("set the return code to 1 if a vulnerability is found with a severity >= the given severity, options=%v", vulnerability.AllSeverities()),
116+
fmt.Sprintf("set the return code to 2 if a vulnerability is found with a severity >= the given severity, options=%v", vulnerability.AllSeverities()),
117117
)
118118

119119
flags.BoolVarP(&o.OnlyFixed,

0 commit comments

Comments
 (0)