summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-08-04 14:23:35 +0000
committerGitHub <noreply@github.com>2022-08-04 14:23:35 +0000
commit1cf6afb788a681fc379d58d7f1cb69eb1690dba9 (patch)
tree91db4717fe50e4d5f8ee929d7253fe87441d9128
parentd7ce5dfe2778c64b0a98a5a19097eb39eea5d2fb (diff)
parente67e602265d9bbedc05a5362bb8729fa323c41d8 (diff)
downloadpodman-1cf6afb788a681fc379d58d7f1cb69eb1690dba9.tar.gz
podman-1cf6afb788a681fc379d58d7f1cb69eb1690dba9.tar.bz2
podman-1cf6afb788a681fc379d58d7f1cb69eb1690dba9.zip
Merge pull request #15192 from vrothberg/fix-15185
podman info: hide `--debug`
-rw-r--r--.github/ISSUE_TEMPLATE.md2
-rw-r--r--cmd/podman/system/info.go1
-rw-r--r--docs/source/markdown/podman-info.1.md4
3 files changed, 2 insertions, 5 deletions
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 6ad306f0f..5946fa6a1 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -55,7 +55,7 @@ Briefly describe the problem you are having in a few paragraphs.
(paste your output here)
```
-**Output of `podman info --debug`:**
+**Output of `podman info`:**
```
(paste your output here)
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.