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

Function newFlag

internal/docs/docs.go:35–42  ·  view source on GitHub ↗
(flag *pflag.Flag)

Source from the content-addressed store, hash-verified

33}
34
35func newFlag(flag *pflag.Flag) Flag {
36 return Flag{
37 Name: flag.Name,
38 Shorthand: flag.Shorthand,
39 Description: strings.TrimSpace(flag.Usage),
40 Default: flag.DefValue,
41 }
42}
43
44func newFlags(flagSet *pflag.FlagSet) []Flag {
45 flags := make([]Flag, 0)

Callers 1

newFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected