Skip to content

Commit

Permalink
Fix crash with additional flags
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Dec 24, 2023
1 parent bcc2e17 commit b27e042
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ var rootCmd = &cobra.Command{
}

func Execute() {
if err := rootCmd.Execute(); err != nil {
config.GlobalConfig.Logger.Error("Error when executing root command:", zap.Error(err))
}
rootCmd.Execute()
}

func init() {
Expand Down

0 comments on commit b27e042

Please sign in to comment.