diff --git a/cmd/podman/containers/rm.go b/cmd/podman/containers/rm.go index 0efac2a281..30df1f1ec7 100644 --- a/cmd/podman/containers/rm.go +++ b/cmd/podman/containers/rm.go @@ -31,7 +31,7 @@ var ( return validate.CheckAllLatestAndIDFile(cmd, args, false, "cidfile") }, ValidArgsFunction: common.AutocompleteContainers, - Example: `podman rm imageID + Example: `podman rm ctrID podman rm mywebserver myflaskserver 860a4b23 podman rm --force --all podman rm -f c684f0d469f2`, @@ -44,7 +44,7 @@ var ( RunE: rmCommand.RunE, Args: rmCommand.Args, ValidArgsFunction: rmCommand.ValidArgsFunction, - Example: `podman container rm imageID + Example: `podman container rm ctrID podman container rm mywebserver myflaskserver 860a4b23 podman container rm --force --all podman container rm -f c684f0d469f2`, diff --git a/cmd/podman/validate/args.go b/cmd/podman/validate/args.go index 52efd5bf23..7ba7c7b1e7 100644 --- a/cmd/podman/validate/args.go +++ b/cmd/podman/validate/args.go @@ -65,7 +65,7 @@ func CheckAllLatestAndPodIDFile(c *cobra.Command, args []string, ignoreArgLen bo } // CheckAllLatestAndIDFile checks that --all and --latest are used correctly for containers and pods -// If idFileFlag is set is set, also checks for the --cidfile or --pod-id-file flag. +// If idFileFlag is set, also checks for the --cidfile or --pod-id-file flag. func CheckAllLatestAndIDFile(c *cobra.Command, args []string, ignoreArgLen bool, idFileFlag string) error { var specifiedLatest bool argLen := len(args)