Merge pull request #15192 from vrothberg/fix-15185

podman info: hide `--debug`
This commit is contained in:
openshift-ci[bot] 2022-08-04 14:23:35 +00:00 committed by GitHub
commit 1cf6afb788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -55,7 +55,7 @@ Briefly describe the problem you are having in a few paragraphs.
(paste your output here) (paste your output here)
``` ```
**Output of `podman info --debug`:** **Output of `podman info`:**
``` ```
(paste your output here) (paste your output here)

View File

@ -63,6 +63,7 @@ func infoFlags(cmd *cobra.Command) {
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVarP(&debug, "debug", "D", false, "Display additional debug information") flags.BoolVarP(&debug, "debug", "D", false, "Display additional debug information")
_ = flags.MarkHidden("debug") // It's a NOP since Podman version 2.0
formatFlagName := "format" formatFlagName := "format"
flags.StringVarP(&inFormat, formatFlagName, "f", "", "Change the output format to JSON or a Go template") flags.StringVarP(&inFormat, formatFlagName, "f", "", "Change the output format to JSON or a Go template")

View File

@ -15,10 +15,6 @@ Displays information pertinent to the host, current storage stats, configured co
## OPTIONS ## OPTIONS
#### **--debug**, **-D**
Show additional information
#### **--format**, **-f**=*format* #### **--format**, **-f**=*format*
Change output format to "json" or a Go template. Change output format to "json" or a Go template.