From a9357e8cc4e969641c4a2e8947d218f8d91c5989 Mon Sep 17 00:00:00 2001 From: Manuel Dewald Date: Wed, 15 Dec 2021 16:57:20 +0100 Subject: [PATCH] change -o to -p * With global -o changing this flag to -p (prvious) * this fixes kubectl completion bash --- cmd/sts/policydiff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sts/policydiff.go b/cmd/sts/policydiff.go index a3609515..bea1beb0 100644 --- a/cmd/sts/policydiff.go +++ b/cmd/sts/policydiff.go @@ -42,7 +42,7 @@ func newCmdPolicyDiff(streams genericclioptions.IOStreams, flags *genericcliopti }, } - policyDiffCmd.Flags().StringVarP(&ops.oldReleaseVersion, "old-version", "o", "", "") + policyDiffCmd.Flags().StringVarP(&ops.oldReleaseVersion, "previous-version", "p", "", "") policyDiffCmd.Flags().StringVarP(&ops.newReleaseVersion, "new-version", "n", "", "") return policyDiffCmd @@ -50,7 +50,7 @@ func newCmdPolicyDiff(streams genericclioptions.IOStreams, flags *genericcliopti func (o *policyDiffOptions) complete(cmd *cobra.Command, args []string) error { if len(args) != 2 { - return cmdutil.UsageErrorf(cmd, "Old and new release version is required for policy-diff command") + return cmdutil.UsageErrorf(cmd, "Previous and new release version is required for policy-diff command") } for _, s := range args {