MCPcopy Create free account
hub / github.com/algolia/cli / rootFlagErrorFunc

Function rootFlagErrorFunc

pkg/cmd/root/help.go:20–25  ·  view source on GitHub ↗
(cmd *cobra.Command, err error)

Source from the content-addressed store, hash-verified

18}
19
20func rootFlagErrorFunc(cmd *cobra.Command, err error) error {
21 if err == pflag.ErrHelp {
22 return err
23 }
24 return cmdutil.FlagErrorWrap(err)
25}
26
27var hasFailed bool
28

Callers

nothing calls this directly

Calls 1

FlagErrorWrapFunction · 0.92

Tested by

no test coverage detected