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

Function printUsageErrorAndExit

tools/kafka-producer-performance/main.go:453–459  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

451}
452
453func printUsageErrorAndExit(message string) {
454 fmt.Fprintln(os.Stderr, "ERROR:", message)
455 fmt.Fprintln(os.Stderr)
456 fmt.Fprintln(os.Stderr, "Available command line options:")
457 flag.PrintDefaults()
458 os.Exit(64)
459}
460
461func printErrorAndExit(code int, format string, values ...any) {
462 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))

Callers 4

parseCompressionFunction · 0.70
parsePartitionerFunction · 0.70
parseVersionFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected