MCPcopy Index your code
hub / github.com/docker/cli / withHelp

Function withHelp

cli/command/container/run.go:318–320  ·  view source on GitHub ↗

withHelp decorates the error with a suggestion to use "--help".

(err error, commandName string)

Source from the content-addressed store, hash-verified

316
317// withHelp decorates the error with a suggestion to use "--help".
318func withHelp(err error, commandName string) error {
319 return fmt.Errorf("docker: %w\n\nRun 'docker %s --help' for more information", err, commandName)
320}
321
322// toStatusError attempts to detect specific error-conditions to assign
323// an appropriate exit-code for situations where the problem originates

Callers 3

runRunFunction · 0.85
toStatusErrorFunction · 0.85
runCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…