X Tutup
Skip to content

Commit 76bd377

Browse files
committed
spelling: error
1 parent 861d350 commit 76bd377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/root/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func rootUsageFunc(command *cobra.Command) error {
3535
return nil
3636
}
3737

38-
func rootFlagErrrorFunc(cmd *cobra.Command, err error) error {
38+
func rootFlagErrorFunc(cmd *cobra.Command, err error) error {
3939
if err == pflag.ErrHelp {
4040
return err
4141
}

pkg/cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
5959
cmd.PersistentFlags().Bool("help", false, "Show help for command")
6060
cmd.SetHelpFunc(helpHelper)
6161
cmd.SetUsageFunc(rootUsageFunc)
62-
cmd.SetFlagErrorFunc(rootFlagErrrorFunc)
62+
cmd.SetFlagErrorFunc(rootFlagErrorFunc)
6363

6464
formattedVersion := versionCmd.Format(version, buildDate)
6565
cmd.SetVersionTemplate(formattedVersion)

0 commit comments

Comments
 (0)
X Tutup