summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPraveen Kumar <praveen+git@kumar.in>2021-10-29 11:10:26 -0700
committerPraveen Kumar <praveen+git@kumar.in>2021-10-29 11:49:49 -0700
commite69eae6458737e73e9a9b61297f1f911f0fb6599 (patch)
treeb886219e9be991f715e1898cd98d583dc26e4d5d
parent1305902ff40989099ffe13efd32458565cbc11c6 (diff)
downloadpodman-e69eae6458737e73e9a9b61297f1f911f0fb6599.tar.gz
podman-e69eae6458737e73e9a9b61297f1f911f0fb6599.tar.bz2
podman-e69eae6458737e73e9a9b61297f1f911f0fb6599.zip
Fix help message case for `podman version`
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 <praveen+git@kumar.in>
-rw-r--r--cmd/podman/system/version.go2
-rw-r--r--test/e2e/version_test.go10
2 files changed, 10 insertions, 2 deletions
diff --git a/cmd/podman/system/version.go b/cmd/podman/system/version.go
index 3ddd19bae..3443978d6 100644
--- a/cmd/podman/system/version.go
+++ b/cmd/podman/system/version.go
@@ -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,
}
diff --git a/test/e2e/version_test.go b/test/e2e/version_test.go
index 75986e671..9398248b8 100644
--- a/test/e2e/version_test.go
+++ b/test/e2e/version_test.go
@@ -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"),
+ )
+ })
})