MCPcopy
hub / github.com/docker/compose / disableFlagsInUseLine

Function disableFlagsInUseLine

docs/yaml/main/generate.go:69–74  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

67}
68
69func disableFlagsInUseLine(cmd *cobra.Command) {
70 visitAll(cmd, func(ccmd *cobra.Command) {
71 // do not add a `[flags]` to the end of the usage line.
72 ccmd.DisableFlagsInUseLine = true
73 })
74}
75
76// visitAll will traverse all commands from the root.
77// This is different from the VisitAll of cobra.Command where only parents

Callers 1

generateDocsFunction · 0.85

Calls 1

visitAllFunction · 0.85

Tested by

no test coverage detected