mirror of
https://github.com/axllent/mailpit.git
synced 2024-12-28 23:06:43 +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:
parent
5a04534314
commit
4e2f02ee0a
@ -21,7 +21,7 @@ func init() {
|
|||||||
rootCmd.AddCommand(sendmailCmd)
|
rootCmd.AddCommand(sendmailCmd)
|
||||||
|
|
||||||
// print out manual help screen
|
// 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
|
// these are simply repeated for cli consistency as cobra/viper does not allow
|
||||||
// multi-letter single-dash variables (-bs)
|
// multi-letter single-dash variables (-bs)
|
||||||
|
Loading…
Reference in New Issue
Block a user