command is not optional to podman exec

Fixes: https://github.com/containers/podman/issues/22849

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-07-11 06:32:50 -04:00
parent 43fe3ebaf3
commit 29071ac498
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ var (
execDescription = `Execute the specified command inside a running container.
`
execCommand = &cobra.Command{
Use: "exec [options] CONTAINER [COMMAND [ARG...]]",
Use: "exec [options] CONTAINER COMMAND [ARG...]",
Short: "Run a process in a running container",
Long: execDescription,
RunE: exec,

View File

@ -4,9 +4,9 @@
podman\-exec - Execute a command in a running container
## SYNOPSIS
**podman exec** [*options*] *container* [*command* [*arg* ...]]
**podman exec** [*options*] *container* *command* [*arg* ...]
**podman container exec** [*options*] *container* [*command* [*arg* ...]]
**podman container exec** [*options*] *container* *command* [*arg* ...]
## DESCRIPTION
**podman exec** executes a command in a running container.