Skip to content

Commit a04f060

Browse files
authored
disable usage on errors (#878)
Signed-off-by: Scott Nichols <[email protected]>
1 parent 1bd3067 commit a04f060

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/cosign/cli/commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func New() *cobra.Command {
3333
cmd := &cobra.Command{
3434
Use: "cosign",
3535
DisableAutoGenTag: true,
36+
SilenceUsage: true, // Don't show usage on errors
3637
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
3738
if ro.OutputFile != "" {
3839
out, err := os.Create(ro.OutputFile)

0 commit comments

Comments
 (0)