MCPcopy Index your code
hub / github.com/cli/cli / hasNonHelpFlags

Function hasNonHelpFlags

internal/docs/markdown.go:61–68  ·  view source on GitHub ↗
(fs *pflag.FlagSet)

Source from the content-addressed store, hash-verified

59}
60
61func hasNonHelpFlags(fs *pflag.FlagSet) (found bool) {
62 fs.VisitAll(func(f *pflag.Flag) {
63 if !f.Hidden && f.Name != "help" {
64 found = true
65 }
66 })
67 return
68}
69
70var hiddenFlagDefaults = map[string]bool{
71 "false": true,

Callers 2

printOptionsFunction · 0.85
manPrintOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected