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

Function printUsageErrorAndExit

tools/kafka-console-consumer/kafka-console-consumer.go:158–164  ·  view source on GitHub ↗
(format string, values ...any)

Source from the content-addressed store, hash-verified

156}
157
158func printUsageErrorAndExit(format string, values ...any) {
159 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))
160 fmt.Fprintln(os.Stderr)
161 fmt.Fprintln(os.Stderr, "Available command line options:")
162 flag.PrintDefaults()
163 os.Exit(64)
164}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected