Skip to content

Commit

Permalink
Merge pull request #173 from NautiluX/fix-completion
Browse files Browse the repository at this point in the history
change -o to -p
  • Loading branch information
openshift-merge-robot authored Dec 15, 2021
2 parents 5734e6b + a9357e8 commit 79e91cd
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 79e91cd

Please sign in to comment.