mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
Merge pull request #12141 from kprav33n/help-doc
Fix help message case for `podman version`
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
@ -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"),
|
||||
)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user