add --no-startup-message flag

This commit is contained in:
Lukas Willburger 2020-03-13 10:38:33 +01:00
parent b051327f1b
commit fc3decce3a
3 changed files with 14 additions and 4 deletions

View file

@ -123,6 +123,12 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
viper.GetString("WATCHTOWER_NOTIFICATIONS_LEVEL"),
"The log level used for sending notifications. Possible values: panic, fatal, error, warn, info or debug")
flags.BoolP(
"no-startup-message",
"",
viper.GetBool("WATCHTOWER_NOTIFICATION_NO_STARTUP_MESSAGE"),
"Prevents watchtower from sending a startup message")
flags.StringP(
"notification-email-from",
"",