(message string)
| 451 | } |
| 452 | |
| 453 | func 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 | |
| 461 | func printErrorAndExit(code int, format string, values ...any) { |
| 462 | fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...)) |
no outgoing calls
no test coverage detected