From 29071ac4988623cedd8c23ab57e24bc1736a12ef Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 11 Jul 2024 06:32:50 -0400 Subject: [PATCH] command is not optional to podman exec Fixes: https://github.com/containers/podman/issues/22849 Signed-off-by: Daniel J Walsh --- cmd/podman/containers/exec.go | 2 +- docs/source/markdown/podman-exec.1.md.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/podman/containers/exec.go b/cmd/podman/containers/exec.go index 428e635409..3679af6b86 100644 --- a/cmd/podman/containers/exec.go +++ b/cmd/podman/containers/exec.go @@ -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, diff --git a/docs/source/markdown/podman-exec.1.md.in b/docs/source/markdown/podman-exec.1.md.in index d76185a4e3..c12d86a2ad 100644 --- a/docs/source/markdown/podman-exec.1.md.in +++ b/docs/source/markdown/podman-exec.1.md.in @@ -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.