mirror of
https://github.com/axllent/mailpit.git
synced 2025-08-15 20:13:16 +02:00
Fix: Only display sendmail help when sendmail subcommand is invoked
This was overriding all Mailpit's help commands
This commit is contained in:
@@ -21,7 +21,7 @@ func init() {
|
||||
rootCmd.AddCommand(sendmailCmd)
|
||||
|
||||
// print out manual help screen
|
||||
rootCmd.SetHelpTemplate(sendmail.HelpTemplate([]string{os.Args[0], "sendmail"}))
|
||||
sendmailCmd.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)
|
||||
|
Reference in New Issue
Block a user