Add support for short option -f in podman version

docker version supports a short options -f for --format

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2019-01-30 15:41:23 +00:00
parent b71088a01e
commit 2ed52c299f
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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