summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-07-26 10:44:03 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-07-29 14:47:21 +0200
commit6065070baed175853301a6396697f2fd6fbc511e (patch)
treed51a6f895e383aaf42a857fcdb09fc1aafa75c75 /cmd/podman
parent7c9095ea1de363f8d76ae246575062755ac9398e (diff)
downloadpodman-6065070baed175853301a6396697f2fd6fbc511e.tar.gz
podman-6065070baed175853301a6396697f2fd6fbc511e.tar.bz2
podman-6065070baed175853301a6396697f2fd6fbc511e.zip
fix `podman -v` regression
Re-add the shortflag for --version and add e2e tests to avoid regressing in the future. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-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()...)
}