summaryrefslogtreecommitdiff
path: root/cmd/podman/port.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-01-16 15:35:31 -0700
committerBrent Baude <bbaude@redhat.com>2020-02-23 11:04:39 -0600
commitfab5b35b2ace79564ce182979887f5a062a0e55f (patch)
treed23c87efb042295e2cb8bea9a1ae3b3074073f30 /cmd/podman/port.go
parent5a1609b9cf89940c570e488a2ea0f481b22ed424 (diff)
downloadpodman-fab5b35b2ace79564ce182979887f5a062a0e55f.tar.gz
podman-fab5b35b2ace79564ce182979887f5a062a0e55f.tar.bz2
podman-fab5b35b2ace79564ce182979887f5a062a0e55f.zip
Friendly amendment: tests, and a help message
1) Help message for podman port was missing [PORT] 2) Add test for 'podman port'. And, actually, an entire networking test that I'd written some weeks ago but apparently didn't 'git add'. Signed-off-by: Ed Santiago <santiago@redhat.com> Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/port.go')
-rw-r--r--cmd/podman/port.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/port.go b/cmd/podman/port.go
index e6d10d5fa..4bb79a3a2 100644
--- a/cmd/podman/port.go
+++ b/cmd/podman/port.go
@@ -17,7 +17,7 @@ var (
portDescription = `List port mappings for the CONTAINER, or lookup the public-facing port that is NAT-ed to the PRIVATE_PORT
`
_portCommand = &cobra.Command{
- Use: "port [flags] CONTAINER",
+ Use: "port [flags] CONTAINER [PORT]",
Short: "List port mappings or a specific mapping for the container",
Long: portDescription,
RunE: func(cmd *cobra.Command, args []string) error {