MCPcopy
hub / github.com/urfave/cli / hideHelp

Method hideHelp

command_setup.go:219–228  ·  command_setup.go::Command.hideHelp
()

Source from the content-addressed store, hash-verified

217}
218
219func (cmd *Command) hideHelp() bool {
220 tracef("hide help (cmd=%[1]q)", cmd.Name)
221 for c := cmd; c != nil; c = c.parent {
222 if c.HideHelp {
223 return true
224 }
225 }
226
227 return false
228}
229
230func (cmd *Command) ensureHelp() {
231 tracef("ensuring help (cmd=%[1]q)", cmd.Name)

Callers 3

ensureHelpMethod · 0.95
runMethod · 0.95
suggestFlagFromErrorMethod · 0.95

Calls 1

tracefFunction · 0.85

Tested by

no test coverage detected