Add support for short option -s in podman inspect

docker inspect supports a short -s option for --size.

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

View File

@ -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,

View File

@ -1366,6 +1366,7 @@ _podman_inspect() {
--type
-t
--size
-s
"
local all_options="$options_with_args $boolean_options"

View File

@ -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