From db2b8dd826c01f7246acc8fd9f89647b09186da0 Mon Sep 17 00:00:00 2001 From: Yonah Dissen <47282577+yonahd@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:00:33 +0300 Subject: [PATCH] fix: remove reason shorthand (#314) Co-authored-by: Yonah Dissen --- README.md | 2 +- cmd/kor/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ecc773a..41775054 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Kor provides various subcommands to identify and list unused resources. The avai --no-interactive Do not prompt for confirmation when deleting resources. Be careful using this flag! --older-than string The minimum age of the resources to be considered unused. This flag cannot be used together with newer-than flag. Example: --older-than=1h2m -o, --output string Output format (table, json or yaml) (default "table") - -r, --show-reason Print reason resource is considered unused + --show-reason Print reason resource is considered unused --slack-auth-token string Slack auth token to send notifications to. --slack-auth-token requires --slack-channel to be set. --slack-channel string Slack channel to send notifications to. --slack-channel requires --slack-auth-token to be set. --slack-webhook-url string Slack webhook URL to send notifications to diff --git a/cmd/kor/root.go b/cmd/kor/root.go index ef061017..48b0500f 100644 --- a/cmd/kor/root.go +++ b/cmd/kor/root.go @@ -60,7 +60,7 @@ func init() { rootCmd.PersistentFlags().BoolVar(&opts.NoInteractive, "no-interactive", false, "Do not prompt for confirmation when deleting resources. Be careful using this flag!") rootCmd.PersistentFlags().BoolVarP(&opts.Verbose, "verbose", "v", false, "Verbose output (print empty namespaces)") rootCmd.PersistentFlags().StringVar(&opts.GroupBy, "group-by", "namespace", "Group output by (namespace, resource)") - rootCmd.PersistentFlags().BoolVarP(&opts.ShowReason, "show-reason", "r", false, "Print reason resource is considered unused") + rootCmd.PersistentFlags().BoolVar(&opts.ShowReason, "show-reason", false, "Print reason resource is considered unused") addFilterOptionsFlag(rootCmd, filterOptions) }