summaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-29 19:54:49 +0200
committerGitHub <noreply@github.com>2019-07-29 19:54:49 +0200
commitc3c45f3ba5c2782be9658a33f8632467a06c6422 (patch)
treeb6e047a9f9c1998cca19e79dafe3f1d08d18378a /cmd/podman/main.go
parent6665269ab8bd413799df6568a83a3ac679c93ad1 (diff)
parent6065070baed175853301a6396697f2fd6fbc511e (diff)
downloadpodman-c3c45f3ba5c2782be9658a33f8632467a06c6422.tar.gz
podman-c3c45f3ba5c2782be9658a33f8632467a06c6422.tar.bz2
podman-c3c45f3ba5c2782be9658a33f8632467a06c6422.zip
Merge pull request #3646 from vrothberg/hi-scott
fix `podman -v` regression
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r--cmd/podman/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index 72d1754ac..1b54c9458 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -91,7 +91,7 @@ func init() {
rootCmd.Version = version.Version
// Override default --help information of `--version` global flag
var dummyVersion bool
- rootCmd.PersistentFlags().BoolVar(&dummyVersion, "version", false, "Version for podman")
+ rootCmd.Flags().BoolVarP(&dummyVersion, "version", "v", false, "Version of podman")
rootCmd.AddCommand(mainCommands...)
rootCmd.AddCommand(getMainCommands()...)
}