summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-08-04 13:13:26 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-08-04 13:39:15 +0200
commite67e602265d9bbedc05a5362bb8729fa323c41d8 (patch)
tree7c4cf26768afecab165e4684fa8ed5e2ab41437d
parentbcfbee9862b6b3dc2f4554b1fa02b274051c12d8 (diff)
downloadpodman-e67e602265d9bbedc05a5362bb8729fa323c41d8.tar.gz
podman-e67e602265d9bbedc05a5362bb8729fa323c41d8.tar.bz2
podman-e67e602265d9bbedc05a5362bb8729fa323c41d8.zip
podman info: hide `--debug`
It's a NOP since Podman v2.0 (#5738). [NO NEW TESTS NEEDED] - does not change behavior. Fixes: #15185 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
-rw-r--r--cmd/podman/system/info.go1
-rw-r--r--docs/source/markdown/podman-info.1.md4
2 files changed, 1 insertions, 4 deletions
diff --git a/cmd/podman/system/info.go b/cmd/podman/system/info.go
index f8fd946cd..296fa4def 100644
--- a/cmd/podman/system/info.go
+++ b/cmd/podman/system/info.go
@@ -63,6 +63,7 @@ func infoFlags(cmd *cobra.Command) {
flags := cmd.Flags()
flags.BoolVarP(&debug, "debug", "D", false, "Display additional debug information")
+ _ = flags.MarkHidden("debug") // It's a NOP since Podman version 2.0
formatFlagName := "format"
flags.StringVarP(&inFormat, formatFlagName, "f", "", "Change the output format to JSON or a Go template")
diff --git a/docs/source/markdown/podman-info.1.md b/docs/source/markdown/podman-info.1.md
index 347d8d27b..fc7e1f0e2 100644
--- a/docs/source/markdown/podman-info.1.md
+++ b/docs/source/markdown/podman-info.1.md
@@ -15,10 +15,6 @@ Displays information pertinent to the host, current storage stats, configured co
## OPTIONS
-#### **--debug**, **-D**
-
-Show additional information
-
#### **--format**, **-f**=*format*
Change output format to "json" or a Go template.