diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-10 16:21:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 16:21:12 -0400 |
commit | f642b0482f49a7046ca7da5b4a736b6b0ab54eca (patch) | |
tree | dfbd7521bd943096a52cd4db1c5593440034a671 /cmd/podman/validate/latest.go | |
parent | 68fd9aa2cf67a749258ccdc6fa8fd89c2557ebfc (diff) | |
parent | cd74f66bad464f03353321184466da61032b78a5 (diff) | |
download | podman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.tar.gz podman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.tar.bz2 podman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.zip |
Merge pull request #7221 from baude/issue7127
remove --latest for all remote commands
Diffstat (limited to 'cmd/podman/validate/latest.go')
-rw-r--r-- | cmd/podman/validate/latest.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/podman/validate/latest.go b/cmd/podman/validate/latest.go index 5c76fe847..c9bff798a 100644 --- a/cmd/podman/validate/latest.go +++ b/cmd/podman/validate/latest.go @@ -7,9 +7,8 @@ import ( func AddLatestFlag(cmd *cobra.Command, b *bool) { // Initialization flag verification - cmd.Flags().BoolVarP(b, "latest", "l", false, - "Act on the latest container podman is aware of\nNot supported with the \"--remote\" flag") - if registry.IsRemote() { - _ = cmd.Flags().MarkHidden("latest") + if !registry.IsRemote() { + cmd.Flags().BoolVarP(b, "latest", "l", false, + "Act on the latest container podman is aware of\nNot supported with the \"--remote\" flag") } } |