Skip to content

Commit

Permalink
fixing flags usage text to first capital letter. (#1102)
Browse files Browse the repository at this point in the history
Co-authored-by: dimas <[email protected]>
  • Loading branch information
dhiemaz and dimas authored Nov 8, 2021
1 parent cb4e60c commit c0fd77d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions internal/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
"interval",
"i",
viper.GetInt("WATCHTOWER_POLL_INTERVAL"),
"poll interval (in seconds)")
"Poll interval (in seconds)")

flags.StringP(
"schedule",
"s",
viper.GetString("WATCHTOWER_SCHEDULE"),
"the cron expression which defines when to update")
"The cron expression which defines when to update")

flags.DurationP(
"stop-timeout",
"t",
viper.GetDuration("WATCHTOWER_TIMEOUT"),
"timeout before a container is forcefully stopped")
"Timeout before a container is forcefully stopped")

flags.BoolP(
"no-pull",
"",
viper.GetBool("WATCHTOWER_NO_PULL"),
"do not pull any new images")
"Do not pull any new images")

flags.BoolP(
"no-restart",
"",
viper.GetBool("WATCHTOWER_NO_RESTART"),
"do not restart any containers")
"Do not restart any containers")

flags.BoolP(
"no-startup-message",
Expand All @@ -67,31 +67,31 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
"cleanup",
"c",
viper.GetBool("WATCHTOWER_CLEANUP"),
"remove previously used images after updating")
"Remove previously used images after updating")

flags.BoolP(
"remove-volumes",
"",
viper.GetBool("WATCHTOWER_REMOVE_VOLUMES"),
"remove attached volumes before updating")
"Remove attached volumes before updating")

flags.BoolP(
"label-enable",
"e",
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(
"debug",
"d",
viper.GetBool("WATCHTOWER_DEBUG"),
"enable debug mode with verbose logging")
"Enable debug mode with verbose logging")

flags.BoolP(
"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(
"monitor-only",
Expand Down Expand Up @@ -177,7 +177,7 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
"notifications",
"n",
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(
"notifications-level",
Expand Down

0 comments on commit c0fd77d

Please sign in to comment.