Skip to content

Commit

Permalink
chore: Combine flagsets to decrease memory use
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 31, 2023
1 parent c569d5c commit ea9a552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flag_completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
var completionFlag string

func CompletionFlag(cmd *cobra.Command) {
cmd.Flags().StringVar(&completionFlag, "completion", "", "Output command-line completion code for the specified shell. Can be 'bash', 'zsh', 'fish', or 'powershell'.")
cmd.PersistentFlags().StringVar(&completionFlag, "completion", "", "Output command-line completion code for the specified shell. Can be 'bash', 'zsh', 'fish', or 'powershell'.")
err := cmd.RegisterFlagCompletionFunc("completion", completionCompletion)
if err != nil {
panic(err)
Expand Down

0 comments on commit ea9a552

Please sign in to comment.