MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / checkArgAndExit

Function checkArgAndExit

hoverctl/cmd/utils.go:21–27  ·  view source on GitHub ↗
(args []string, message, command string)

Source from the content-addressed store, hash-verified

19}
20
21func checkArgAndExit(args []string, message, command string) {
22 if len(args) == 0 {
23 fmt.Fprintln(os.Stderr, message)
24 fmt.Fprintln(os.Stderr, "\nTry hoverctl "+command+" --help for more information")
25 os.Exit(1)
26 }
27}
28
29func checkTargetAndExit(target *configuration.Target) {
30 if target == nil {

Callers 4

export.goFile · 0.85
import.goFile · 0.85
targets.goFile · 0.85
simulation.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected