diff --git a/bin/crypt/main.go b/bin/crypt/main.go index 4a7f8af1..b9585702 100644 --- a/bin/crypt/main.go +++ b/bin/crypt/main.go @@ -45,14 +45,16 @@ func main() { } func help() { - fmt.Fprintf(os.Stderr, "usage: %s COMMAND [arg...]", os.Args[0]) - fmt.Fprintf(os.Stderr, "\n\n") - fmt.Fprintf(os.Stderr, "commands:\n") - fmt.Fprintf(os.Stderr, " get retrieve the value of a key\n") - fmt.Fprintf(os.Stderr, " list retrieve all values under a key\n") - fmt.Fprintf(os.Stderr, " set set the value of a key\n") - fmt.Fprintf(os.Stderr, "\n") - fmt.Fprintf(os.Stderr, "-plaintext don't encrypt or decrypt the values before storage or retrieval\n") + const usage = `usage: %s COMMAND [arg...] +commands: + get retrieve the value of a key + list retrieve all values under a key + set set the value of a key + +-plaintext don't encrypt or decrypt the values before storage or retrieval +` + + _, _ = fmt.Fprintf(os.Stderr, usage, os.Args[0]) os.Exit(1) }