pkg/oc/cli/admin/release/info: Fix pullspecs default
To use o.ShowPullSpec, matching the example set by the other options.
It had been using o.ShowCommit as the default since (cli: Add
an `oc adm release info` command that views and diffs releases,
2018-11-05, which may have been a copy/paste error.
@@ -59,7 +59,7 @@ func NewInfo(f kcmdutil.Factory, parentName string, streams genericclioptions.IO
flags := cmd.Flags()
flags.StringVar(&o.From, "changes-from", o.From, "Show changes from this image to the requested image.")
flags.BoolVar(&o.ShowCommit, "commits", o.ShowCommit, "Display information about the source an image was created with.")
- flags.BoolVar(&o.ShowPullSpec, "pullspecs", o.ShowCommit, "Display the pull spec of each image instead of the digest.")
+ flags.BoolVar(&o.ShowPullSpec, "pullspecs", o.ShowPullSpec, "Display the pull spec of each image instead of the digest.")
flags.StringVar(&o.ImageFor, "image-for", o.ImageFor, "Print the pull spec of the specified image or an error if it does not exist.")
flags.StringVarP(&o.Output, "output", "o", o.Output, "Display the release info in an alternative format: json")
return cmd
