Skip to content

Commit

Permalink
change -o to -p
Browse files Browse the repository at this point in the history
* With global -o changing this flag to -p (prvious)
* this fixes kubectl completion bash
  • Loading branch information
Manuel Dewald committed Dec 15, 2021
1 parent 5734e6b commit a9357e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sts/policydiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ 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
}

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 {
Expand Down

0 comments on commit a9357e8

Please sign in to comment.