1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-22 03:39:59 +02:00

Merge branch 'release/v1.6.16'

This commit is contained in:
Ralph Slooten 2023-06-03 17:19:29 +12:00
commit 48bec0c8f6
3 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,12 @@
Notable changes to Mailpit will be documented in this file.
## [v1.6.16]
### Bugfix
- Fix sendmail/startup panic
## [v1.6.15]
### Feature

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