diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-01-30 15:41:23 +0000 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-01-30 15:41:52 +0000 |
commit | 2ed52c299fa382000d33d4fa2eb2727ce4e80455 (patch) | |
tree | a63662c0d94d5b6943400d034c9d7baf2aaf1af7 | |
parent | b71088a01e1e43b87214aaca87c73865fa3b990e (diff) | |
download | podman-2ed52c299fa382000d33d4fa2eb2727ce4e80455.tar.gz podman-2ed52c299fa382000d33d4fa2eb2727ce4e80455.tar.bz2 podman-2ed52c299fa382000d33d4fa2eb2727ce4e80455.zip |
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>
-rw-r--r-- | cmd/podman/version.go | 2 | ||||
-rw-r--r-- | completions/bash/podman | 1 | ||||
-rw-r--r-- | docs/podman-version.1.md | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/version.go b/cmd/podman/version.go index fd7f06b7c..ce773ee2e 100644 --- a/cmd/podman/version.go +++ b/cmd/podman/version.go @@ -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", }, } diff --git a/completions/bash/podman b/completions/bash/podman index 9ef1d1a0d..7f5caf7a5 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -2036,6 +2036,7 @@ _podman_version() { " local options_with_args=" --format + -f " local all_options="$options_with_args $boolean_options" diff --git a/docs/podman-version.1.md b/docs/podman-version.1.md index 749a33afd..171096587 100644 --- a/docs/podman-version.1.md +++ b/docs/podman-version.1.md @@ -16,7 +16,7 @@ OS, and Architecture. Print usage statement -**--format** +**--format**, **-f** Change output format to "json" or a Go template. |