summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-01-30 15:28:13 +0000
committerDaniel J Walsh <dwalsh@redhat.com>2019-01-30 15:28:15 +0000
commit9e340da255bd45a171cd35afb21fb320fb42f7ff (patch)
treeb653c428a767052e18807154762faa4833bace70
parentb71088a01e1e43b87214aaca87c73865fa3b990e (diff)
downloadpodman-9e340da255bd45a171cd35afb21fb320fb42f7ff.tar.gz
podman-9e340da255bd45a171cd35afb21fb320fb42f7ff.tar.bz2
podman-9e340da255bd45a171cd35afb21fb320fb42f7ff.zip
Add support for short option -f
docker info supports a short -f option for --format. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-rw-r--r--cmd/podman/info.go2
-rw-r--r--completions/bash/podman1
-rw-r--r--docs/podman-info.1.md2
3 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/info.go b/cmd/podman/info.go
index 3888829a3..f5f91b603 100644
--- a/cmd/podman/info.go
+++ b/cmd/podman/info.go
@@ -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",
},
}
diff --git a/completions/bash/podman b/completions/bash/podman
index 9ef1d1a0d..e84c25117 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -1219,6 +1219,7 @@ _podman_info() {
--debug
"
local options_with_args="
+ -f
--format
"
diff --git a/docs/podman-info.1.md b/docs/podman-info.1.md
index 836a2c420..d3a0658c9 100644
--- a/docs/podman-info.1.md
+++ b/docs/podman-info.1.md
@@ -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.