Fix a few typos.

Signed-off-by: Martin Glatzle <findessp@yandex.ru>
This commit is contained in:
Martin Glatzle 2025-03-04 14:56:36 +01:00
parent ac3074e90e
commit b762c15e1c
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ var (
return validate.CheckAllLatestAndIDFile(cmd, args, false, "cidfile") return validate.CheckAllLatestAndIDFile(cmd, args, false, "cidfile")
}, },
ValidArgsFunction: common.AutocompleteContainers, ValidArgsFunction: common.AutocompleteContainers,
Example: `podman rm imageID Example: `podman rm ctrID
podman rm mywebserver myflaskserver 860a4b23 podman rm mywebserver myflaskserver 860a4b23
podman rm --force --all podman rm --force --all
podman rm -f c684f0d469f2`, podman rm -f c684f0d469f2`,
@ -44,7 +44,7 @@ var (
RunE: rmCommand.RunE, RunE: rmCommand.RunE,
Args: rmCommand.Args, Args: rmCommand.Args,
ValidArgsFunction: rmCommand.ValidArgsFunction, ValidArgsFunction: rmCommand.ValidArgsFunction,
Example: `podman container rm imageID Example: `podman container rm ctrID
podman container rm mywebserver myflaskserver 860a4b23 podman container rm mywebserver myflaskserver 860a4b23
podman container rm --force --all podman container rm --force --all
podman container rm -f c684f0d469f2`, podman container rm -f c684f0d469f2`,

View File

@ -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 // 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 { func CheckAllLatestAndIDFile(c *cobra.Command, args []string, ignoreArgLen bool, idFileFlag string) error {
var specifiedLatest bool var specifiedLatest bool
argLen := len(args) argLen := len(args)