diff --git a/cmd/root.go b/cmd/root.go index 27c51b96..93d72efb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -69,9 +69,7 @@ func init() { // Execute root command. func Execute() { if err := rootCmd.Execute(); err != nil { - if !errors.As(err, &flagError{}) { - panic(err) - } + os.Exit(1) } }