From 061e9585345cb7f2c75595a056ab81c10b3dd50f Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Tue, 2 Jul 2019 11:30:56 +0200 Subject: [PATCH] fix port typing issue introduced in 998e805 --- internal/flags/flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 6962b98..0915141 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -118,10 +118,10 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) { viper.GetString("WATCHTOWER_NOTIFICATION_EMAIL_SERVER"), "SMTP server to send notification emails through") - flags.StringP( + flags.IntP( "notification-email-server-port", "", - viper.GetString("WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT"), + viper.GetInt("WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT"), "SMTP server port to send notification emails through") flags.BoolP(