Merge pull request #2244 from rhatdan/version

Add support for short option -f in podman version
This commit is contained in:
OpenShift Merge Robot
2019-01-30 18:51:22 +01:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ var (
} }
versionFlags = []cli.Flag{ versionFlags = []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "format", Name: "format, f",
Usage: "Change the output format to JSON or a Go template", Usage: "Change the output format to JSON or a Go template",
}, },
} }

View File

@ -2038,6 +2038,7 @@ _podman_version() {
" "
local options_with_args=" local options_with_args="
--format --format
-f
" "
local all_options="$options_with_args $boolean_options" local all_options="$options_with_args $boolean_options"

View File

@ -16,7 +16,7 @@ OS, and Architecture.
Print usage statement Print usage statement
**--format** **--format**, **-f**
Change output format to "json" or a Go template. Change output format to "json" or a Go template.