1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-09-16 09:26:37 +02:00

Rename hidden long flags

This commit is contained in:
Ralph Slooten
2023-06-07 07:35:34 +12:00
parent a2ab350aff
commit 48387c3a13
2 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ func init() {
sendmailCmd.Flags().BoolVarP(&sendmail.UseB, "long-b", "b", false, "Handle SMTP commands on standard input (use as -bs)")
sendmailCmd.Flags().BoolVarP(&sendmail.UseS, "long-s", "s", false, "Handle SMTP commands on standard input (use as -bs)")
sendmailCmd.Flags().BoolP("verbose", "v", false, "Verbose mode (sends debug output to stderr)")
sendmailCmd.Flags().BoolP("i", "i", false, "Ignored")
sendmailCmd.Flags().BoolP("o", "o", false, "Ignored")
sendmailCmd.Flags().BoolP("t", "t", false, "Ignored")
sendmailCmd.Flags().BoolP("long-i", "i", false, "Ignored")
sendmailCmd.Flags().BoolP("long-o", "o", false, "Ignored")
sendmailCmd.Flags().BoolP("long-t", "t", false, "Ignored")
}

View File

@@ -75,9 +75,9 @@ func Run() {
flag.BoolVarP(&UseB, "long-b", "b", false, "Handle SMTP commands on standard input (use as -bs)")
flag.BoolVarP(&UseS, "long-s", "s", false, "Handle SMTP commands on standard input (use as -bs)")
flag.BoolP("verbose", "v", false, "Ignored")
flag.BoolP("i", "i", false, "Ignored")
flag.BoolP("o", "o", false, "Ignored")
flag.BoolP("t", "t", false, "Ignored")
flag.BoolP("long-i", "i", false, "Ignored")
flag.BoolP("long-o", "o", false, "Ignored")
flag.BoolP("long-t", "t", false, "Ignored")
// set the default help
flag.Usage = func() {