diff --git a/cmd/sendmail.go b/cmd/sendmail.go index 2e9369c..1345138 100644 --- a/cmd/sendmail.go +++ b/cmd/sendmail.go @@ -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) diff --git a/sendmail/cmd/cmd.go b/sendmail/cmd/cmd.go index 951e57a..7919400 100644 --- a/sendmail/cmd/cmd.go +++ b/sendmail/cmd/cmd.go @@ -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