Fix according to remarks

This commit is contained in:
Lukas Willburger 2020-03-22 17:16:44 +01:00
parent fc3decce3a
commit 0b7069fc0c
3 changed files with 16 additions and 7 deletions

View file

@ -52,6 +52,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
viper.GetBool("WATCHTOWER_NO_RESTART"),
"do not restart any containers")
flags.BoolP(
"no-startup-message",
"",
viper.GetBool("WATCHTOWER_NO_STARTUP_MESSAGE"),
"Prevents watchtower from sending a startup message")
flags.BoolP(
"cleanup",
"c",
@ -123,12 +129,6 @@ 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",
"",