1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-03-17 21:18:19 +02:00

Bugfix: Fix sendmail/startup panic

Fixes #122
This commit is contained in:
Ralph Slooten 2023-06-03 17:18:52 +12:00
parent 374a760b88
commit e5888ede8b
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func init() {
rootCmd.AddCommand(sendmailCmd)
// print out manual help screen
rootCmd.SetHelpTemplate(sendmail.HelpTemplate(os.Args[0:2]))
rootCmd.SetHelpTemplate(sendmail.HelpTemplate([]string{os.Args[0], "sendmail"}))
// these are simply repeated for cli consistency as cobra/viper does not allow
// multi-letter single-dash variables (-bs)

View File

@ -161,7 +161,6 @@ func Run() {
// HelpTemplate returns a string of the help
func HelpTemplate(args []string) string {
fmt.Println(args)
return fmt.Sprintf(`A sendmail command replacement for Mailpit (%s)
Usage: %s [flags] [recipients] < message