MCPcopy
hub / github.com/IBM/sarama / printUsageErrorAndExit

Function printUsageErrorAndExit

tools/kafka-console-producer/kafka-console-producer.go:149–155  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

147}
148
149func printUsageErrorAndExit(message string) {
150 fmt.Fprintln(os.Stderr, "ERROR:", message)
151 fmt.Fprintln(os.Stderr)
152 fmt.Fprintln(os.Stderr, "Available command line options:")
153 flag.PrintDefaults()
154 os.Exit(64)
155}
156
157func stdinAvailable() bool {
158 stat, _ := os.Stdin.Stat()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected