mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
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:
@ -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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -2036,6 +2036,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"
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user