summaryrefslogtreecommitdiff
path: root/cmd/podman/validate/latest.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-10 16:21:12 -0400
committerGitHub <noreply@github.com>2020-08-10 16:21:12 -0400
commitf642b0482f49a7046ca7da5b4a736b6b0ab54eca (patch)
treedfbd7521bd943096a52cd4db1c5593440034a671 /cmd/podman/validate/latest.go
parent68fd9aa2cf67a749258ccdc6fa8fd89c2557ebfc (diff)
parentcd74f66bad464f03353321184466da61032b78a5 (diff)
downloadpodman-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.go7
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")
}
}