fixing flags usage text to first capital letter. (#1102)

Co-authored-by: dimas <dimas.prawira@mncgroup.com>
pull/1130/head
Dimas Yudha P 3 years ago committed by GitHub
parent cb4e60cffd
commit c0fd77d357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,31 +31,31 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
"interval", "interval",
"i", "i",
viper.GetInt("WATCHTOWER_POLL_INTERVAL"), viper.GetInt("WATCHTOWER_POLL_INTERVAL"),
"poll interval (in seconds)") "Poll interval (in seconds)")
flags.StringP( flags.StringP(
"schedule", "schedule",
"s", "s",
viper.GetString("WATCHTOWER_SCHEDULE"), viper.GetString("WATCHTOWER_SCHEDULE"),
"the cron expression which defines when to update") "The cron expression which defines when to update")
flags.DurationP( flags.DurationP(
"stop-timeout", "stop-timeout",
"t", "t",
viper.GetDuration("WATCHTOWER_TIMEOUT"), viper.GetDuration("WATCHTOWER_TIMEOUT"),
"timeout before a container is forcefully stopped") "Timeout before a container is forcefully stopped")
flags.BoolP( flags.BoolP(
"no-pull", "no-pull",
"", "",
viper.GetBool("WATCHTOWER_NO_PULL"), viper.GetBool("WATCHTOWER_NO_PULL"),
"do not pull any new images") "Do not pull any new images")
flags.BoolP( flags.BoolP(
"no-restart", "no-restart",
"", "",
viper.GetBool("WATCHTOWER_NO_RESTART"), viper.GetBool("WATCHTOWER_NO_RESTART"),
"do not restart any containers") "Do not restart any containers")
flags.BoolP( flags.BoolP(
"no-startup-message", "no-startup-message",
@ -67,31 +67,31 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
"cleanup", "cleanup",
"c", "c",
viper.GetBool("WATCHTOWER_CLEANUP"), viper.GetBool("WATCHTOWER_CLEANUP"),
"remove previously used images after updating") "Remove previously used images after updating")
flags.BoolP( flags.BoolP(
"remove-volumes", "remove-volumes",
"", "",
viper.GetBool("WATCHTOWER_REMOVE_VOLUMES"), viper.GetBool("WATCHTOWER_REMOVE_VOLUMES"),
"remove attached volumes before updating") "Remove attached volumes before updating")
flags.BoolP( flags.BoolP(
"label-enable", "label-enable",
"e", "e",
viper.GetBool("WATCHTOWER_LABEL_ENABLE"), viper.GetBool("WATCHTOWER_LABEL_ENABLE"),
"watch containers where the com.centurylinklabs.watchtower.enable label is true") "Watch containers where the com.centurylinklabs.watchtower.enable label is true")
flags.BoolP( flags.BoolP(
"debug", "debug",
"d", "d",
viper.GetBool("WATCHTOWER_DEBUG"), viper.GetBool("WATCHTOWER_DEBUG"),
"enable debug mode with verbose logging") "Enable debug mode with verbose logging")
flags.BoolP( flags.BoolP(
"trace", "trace",
"", "",
viper.GetBool("WATCHTOWER_TRACE"), viper.GetBool("WATCHTOWER_TRACE"),
"enable trace mode with very verbose logging - caution, exposes credentials") "Enable trace mode with very verbose logging - caution, exposes credentials")
flags.BoolP( flags.BoolP(
"monitor-only", "monitor-only",
@ -177,7 +177,7 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
"notifications", "notifications",
"n", "n",
viper.GetStringSlice("WATCHTOWER_NOTIFICATIONS"), viper.GetStringSlice("WATCHTOWER_NOTIFICATIONS"),
" notification types to send (valid: email, slack, msteams, gotify, shoutrrr)") " Notification types to send (valid: email, slack, msteams, gotify, shoutrrr)")
flags.String( flags.String(
"notifications-level", "notifications-level",

Loading…
Cancel
Save