mirror of
https://github.com/axllent/mailpit.git
synced 2025-03-17 21:18:19 +02:00
parent
374a760b88
commit
e5888ede8b
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user