mirror of
https://github.com/axllent/mailpit.git
synced 2025-06-21 00:19:33 +02:00
Fix: Add single dash arguments support to sendmail command (#123)
mailpit sendmail -t was not working because of the single dash argument parsing. This commit fixes it. Co-authored-by: Ronaldo Richieri <ronaldo@bestpractical.com>
This commit is contained in:
@ -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.Bool("i", false, "Ignored")
|
||||
flag.Bool("o", false, "Ignored")
|
||||
flag.Bool("t", false, "Ignored")
|
||||
flag.BoolP("i", "i", false, "Ignored")
|
||||
flag.BoolP("o", "o", false, "Ignored")
|
||||
flag.BoolP("t", "t", false, "Ignored")
|
||||
|
||||
// set the default help
|
||||
flag.Usage = func() {
|
||||
|
Reference in New Issue
Block a user