spelling: error
This commit is contained in:
parent
861d350440
commit
76bd377253
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue