MCPcopy
hub / github.com/cli/cli / rootFlagErrorFunc

Function rootFlagErrorFunc

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

FlagErrorWrapFunction · 0.92

Tested by

no test coverage detected