Skip to content

Commit

Permalink
Fix help message case for podman version
Browse files Browse the repository at this point in the history
This is a cosmetic change. The help message for `podman version` is in
title case whereas all other command help messages are not in title
case. This stands out as inconsistent when looking at the output of
`podman help`.

Signed-off-by: Praveen Kumar <[email protected]>
  • Loading branch information
kprav33n committed Oct 29, 2021
1 parent 1305902 commit e69eae6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/system/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
10 changes: 9 additions & 1 deletion test/e2e/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ var _ = Describe("Podman version", func() {
f := CurrentGinkgoTestDescription()
processTestResult(f)
podmanTest.SeedImages()

})

It("podman version", func() {
Expand Down Expand Up @@ -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"),
)
})
})

0 comments on commit e69eae6

Please sign in to comment.