Skip to content

Commit 88fcab3

Browse files
committed
package-type-check: don't show usage on check error
Previous to this patch, the cobra parser would show the tool help message (usage) when a check error is produced. This is confusing, silence that. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero@chainguard.dev>
1 parent 7323125 commit 88fcab3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package-type-check/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func main() {
1818
// Default help message if no command is provided
1919
cmd.Help()
2020
},
21+
SilenceUsage: true,
2122
}
2223

2324
// Add all subcommands

0 commit comments

Comments
 (0)