summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/restart.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/pods/restart.go')
-rw-r--r--cmd/podman/pods/restart.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/pods/restart.go b/cmd/podman/pods/restart.go
index 119b4ddee..7a4b28a45 100644
--- a/cmd/podman/pods/restart.go
+++ b/cmd/podman/pods/restart.go
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
+ "github.com/containers/podman/v2/cmd/podman/common"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/cmd/podman/utils"
"github.com/containers/podman/v2/cmd/podman/validate"
@@ -23,6 +24,7 @@ var (
Args: func(cmd *cobra.Command, args []string) error {
return validate.CheckAllLatestAndCIDFile(cmd, args, false, false)
},
+ ValidArgsFunction: common.AutocompletePods,
Example: `podman pod restart podID1 podID2
podman pod restart --latest
podman pod restart --all`,