Merge pull request #12141 from kprav33n/help-doc

Fix help message case for `podman version`
This commit is contained in:
OpenShift Merge Robot
2021-10-30 08:56:45 +00:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,7 @@ var (
versionCommand = &cobra.Command{
Use: "version [options]",
Args: validate.NoArgs,
Short: "Display the Podman Version Information",
Short: "Display the Podman version information",
RunE: version,
ValidArgsFunction: completion.AutocompleteNone,
}

View File

@ -31,7 +31,6 @@ var _ = Describe("Podman version", func() {
f := CurrentGinkgoTestDescription()
processTestResult(f)
podmanTest.SeedImages()
})
It("podman version", func() {
@ -96,4 +95,13 @@ var _ = Describe("Podman version", func() {
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
})
It("podman help", func() {
session := podmanTest.Podman([]string{"help"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.Out.Contents()).Should(
ContainSubstring("Display the Podman version information"),
)
})
})