From 2ed52c299fa382000d33d4fa2eb2727ce4e80455 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 30 Jan 2019 15:41:23 +0000 Subject: Add support for short option -f in podman version docker version supports a short options -f for --format Signed-off-by: Daniel J Walsh --- cmd/podman/version.go | 2 +- completions/bash/podman | 1 + 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. -- cgit v1.2.3-54-g00ecf