MCPcopy
hub / github.com/nats-io/nats.go / showUsageAndExit

Function showUsageAndExit

examples/nats-pub/main.go:32–35  ·  view source on GitHub ↗
(exitcode int)

Source from the content-addressed store, hash-verified

30}
31
32func showUsageAndExit(exitcode int) {
33 usage()
34 os.Exit(exitcode)
35}
36
37func main() {
38 var urls = flag.String("s", nats.DefaultURL, "The nats server URLs (separated by comma)")

Callers 1

mainFunction · 0.70

Calls 1

usageFunction · 0.70

Tested by

no test coverage detected