Skip to content

Commit

Permalink
fix: change flag in help command
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerebrovinny committed Oct 15, 2024
1 parent 6e0ad4e commit c98592e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var RootCmd = &cobra.Command{
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// Determine if the command is a help command or if the help flag is set
isHelpCommand := cmd.Name() == "help"
helpFlag, _ := cmd.Flags().GetBool("help")
helpFlag := cmd.Flags().Changed("help")

isHelpRequested := isHelpCommand || helpFlag

Expand Down

0 comments on commit c98592e

Please sign in to comment.