Add support for short option -f

docker info supports a short -f option for --format.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2019-01-30 15:28:13 +00:00
parent b71088a01e
commit 9e340da255
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028
3 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ var (
Usage: "display additional debug information",
},
cli.StringFlag{
Name: "format",
Name: "format, f",
Usage: "Change the output format to JSON or a Go template",
},
}

View File

@ -1219,6 +1219,7 @@ _podman_info() {
--debug
"
local options_with_args="
-f
--format
"

View File

@ -19,7 +19,7 @@ Displays information pertinent to the host, current storage stats, configured co
Show additional information
**--format**
**--format, -f**
Change output format to "json" or a Go template.