cmd/hydroxide: beautify help message
This commit is contained in:
parent
a46986a871
commit
6fe47ba219
|
@ -289,28 +289,28 @@ func main() {
|
|||
log.Fatal(<-done)
|
||||
default:
|
||||
log.Println(`usage: hydroxide <command> <flags>
|
||||
commands:
|
||||
auth <username> Login to ProtonMail via hydroxide
|
||||
export-secret-keys Export keys
|
||||
smtp Run hydroxide as an SMTP server
|
||||
imap Run hydroxide as an IMAP server
|
||||
carddav Run hydroxide as a CardDAV server
|
||||
serve Run all servers
|
||||
status View hydroxide status
|
||||
|
||||
flags:
|
||||
-smtp-host example.com
|
||||
Allowed SMTP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-imap-host example.com
|
||||
Allowed IMAP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-carddav-host example.com
|
||||
Allowed SMTP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-smtp-port example.com
|
||||
SMTP port on which hydroxide listens, defaults to 1025
|
||||
-imap-port example.com
|
||||
IMAP port on which hydroxide listens, defaults to 1143
|
||||
-carddav-port example.com
|
||||
CardDAV port on which hydroxide listens, defaults to 8080`)
|
||||
Commands:
|
||||
auth <username> Login to ProtonMail via hydroxide
|
||||
carddav Run hydroxide as a CardDAV server
|
||||
export-secret-keys Export keys
|
||||
imap Run hydroxide as an IMAP server
|
||||
serve Run all servers
|
||||
smtp Run hydroxide as an SMTP server
|
||||
status View hydroxide status
|
||||
|
||||
Flags:
|
||||
-smtp-host example.com
|
||||
Allowed SMTP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-imap-host example.com
|
||||
Allowed IMAP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-carddav-host example.com
|
||||
Allowed SMTP email hostname on which hydroxide listens, defaults to 127.0.0.1
|
||||
-smtp-port example.com
|
||||
SMTP port on which hydroxide listens, defaults to 1025
|
||||
-imap-port example.com
|
||||
IMAP port on which hydroxide listens, defaults to 1143
|
||||
-carddav-port example.com
|
||||
CardDAV port on which hydroxide listens, defaults to 8080`)
|
||||
if cmd != "help" {
|
||||
log.Fatal("Unrecognized command")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue