Skip to content

Commit

Permalink
spelling: error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Nov 22, 2020
1 parent 861d350 commit 76bd377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/root/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func rootUsageFunc(command *cobra.Command) error {
return nil
}

func rootFlagErrrorFunc(cmd *cobra.Command, err error) error {
func rootFlagErrorFunc(cmd *cobra.Command, err error) error {
if err == pflag.ErrHelp {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
cmd.PersistentFlags().Bool("help", false, "Show help for command")
cmd.SetHelpFunc(helpHelper)
cmd.SetUsageFunc(rootUsageFunc)
cmd.SetFlagErrorFunc(rootFlagErrrorFunc)
cmd.SetFlagErrorFunc(rootFlagErrorFunc)

formattedVersion := versionCmd.Format(version, buildDate)
cmd.SetVersionTemplate(formattedVersion)
Expand Down

0 comments on commit 76bd377

Please sign in to comment.