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

Function rootFlagErrorFunc

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

Source from the content-addressed store, hash-verified

45}
46
47func rootFlagErrorFunc(cmd *cobra.Command, err error) error {
48 if err == pflag.ErrHelp {
49 return err
50 }
51 return cmdutil.FlagErrorWrap(err)
52}
53
54var hasFailed bool
55

Callers

nothing calls this directly

Calls 1

FlagErrorWrapFunction · 0.92

Tested by

no test coverage detected