mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Merge pull request #2244 from rhatdan/version
Add support for short option -f in podman version
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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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