summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-11-30 09:15:11 -0600
committerbaude <bbaude@redhat.com>2018-11-30 09:15:11 -0600
commit82bcef38954b4d03b7e047d7843e77bc94647c82 (patch)
treee9bc7a402095f076cb151abbae5512ae778e8904
parent3af62f620a4d4ed21db58e71f9ba7ace242ec742 (diff)
downloadpodman-82bcef38954b4d03b7e047d7843e77bc94647c82.tar.gz
podman-82bcef38954b4d03b7e047d7843e77bc94647c82.tar.bz2
podman-82bcef38954b4d03b7e047d7843e77bc94647c82.zip
add pod short option to ps
podman ps has a flag --pod; simply adding a short option of -p Signed-off-by: baude <bbaude@redhat.com>
-rw-r--r--cmd/podman/ps.go2
-rw-r--r--completions/bash/podman2
-rw-r--r--docs/podman-ps.1.md2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index 83274c9a8..0b03388a2 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -184,7 +184,7 @@ var (
Usage: "Display the extended information",
},
cli.BoolFlag{
- Name: "pod",
+ Name: "pod, p",
Usage: "Print the ID and name of the pod the containers are associated with",
},
cli.BoolFlag{
diff --git a/completions/bash/podman b/completions/bash/podman
index 076ec7ab4..3cccf2192 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -2033,7 +2033,7 @@ _podman_ps() {
--help -h
--latest -l
--no-trunc
- --pod
+ --pod -p
--quiet -q
--size -s
--namespace --ns
diff --git a/docs/podman-ps.1.md b/docs/podman-ps.1.md
index 2cb77ffed..7333a1095 100644
--- a/docs/podman-ps.1.md
+++ b/docs/podman-ps.1.md
@@ -24,7 +24,7 @@ all the containers information. By default it lists:
Show all the containers, default is only running containers
-**--pod**
+**--pod, -p**
Display the pods the containers are associated with