summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-30 18:51:12 +0100
committerGitHub <noreply@github.com>2019-01-30 18:51:12 +0100
commitd38da7b8bec55315697183305cd2412b6c9c5a82 (patch)
tree4bc945183128e78af1d98e455457a1d67b4b2718
parent68858211ce999bca0590dd4ced9d02e675bca9c6 (diff)
parenta05f3a49fd6eeb4a6caa2a3c845119ab36cbe586 (diff)
downloadpodman-d38da7b8bec55315697183305cd2412b6c9c5a82.tar.gz
podman-d38da7b8bec55315697183305cd2412b6c9c5a82.tar.bz2
podman-d38da7b8bec55315697183305cd2412b6c9c5a82.zip
Merge pull request #2243 from rhatdan/size
Add support for short option -s in podman inspect
-rw-r--r--cmd/podman/inspect.go2
-rw-r--r--completions/bash/podman1
-rw-r--r--docs/podman-inspect.1.md2
3 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go
index 3ef740463..5595a8331 100644
--- a/cmd/podman/inspect.go
+++ b/cmd/podman/inspect.go
@@ -32,7 +32,7 @@ var (
Usage: "Change the output format to a Go template",
},
cli.BoolFlag{
- Name: "size",
+ Name: "size, s",
Usage: "Display total file size if the type is container",
},
LatestFlag,
diff --git a/completions/bash/podman b/completions/bash/podman
index e84c25117..fa48681ab 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -1367,6 +1367,7 @@ _podman_inspect() {
--type
-t
--size
+ -s
"
local all_options="$options_with_args $boolean_options"
diff --git a/docs/podman-inspect.1.md b/docs/podman-inspect.1.md
index 7bdbcc662..b01bc0f4e 100644
--- a/docs/podman-inspect.1.md
+++ b/docs/podman-inspect.1.md
@@ -27,7 +27,7 @@ The keys of the returned JSON can be used as the values for the --format flag (s
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
to run containers such as CRI-O, the last started container could be from either of those methods.
-**--size**
+**--size, -s**
Display the total file size if the type is a container