Skip to content

Commit

Permalink
Merge pull request #73 from gadget-inc/fix/double-logging
Browse files Browse the repository at this point in the history
suppress errors from Cobra
  • Loading branch information
MikePresman authored Dec 15, 2023
2 parents a574f7d + 692baef commit 0b31505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewClientCommand() *cobra.Command {
Short: "DateiLager client",
DisableAutoGenTag: true,
Version: version.Version,
SilenceErrors: true,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
cmd.SilenceUsage = true // silence usage when an error occurs after flags have been parsed

Expand Down

0 comments on commit 0b31505

Please sign in to comment.