diff options
Diffstat (limited to 'cmd/podman/port.go')
-rw-r--r-- | cmd/podman/port.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/port.go b/cmd/podman/port.go index 581371e4f..6a15db88d 100644 --- a/cmd/podman/port.go +++ b/cmd/podman/port.go @@ -28,6 +28,9 @@ var ( portCommand.GlobalFlags = MainGlobalOpts return portCmd(&portCommand) }, + Args: func(cmd *cobra.Command, args []string) error { + return checkAllAndLatest(cmd, args, true) + }, Example: `podman port --all podman port ctrID 80/tcp podman port --latest 80`, |