From 22c00ceebbc0d028af94bffdf5a289ff54e1830f Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 11 Apr 2018 08:56:36 -0500 Subject: Add -i to exec for compatibility reasons No change to functionality Issue: #606 Signed-off-by: baude Closes: #607 Approved by: rhatdan --- cmd/podman/exec.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'cmd') diff --git a/cmd/podman/exec.go b/cmd/podman/exec.go index 02b65792e..c72f63ac8 100644 --- a/cmd/podman/exec.go +++ b/cmd/podman/exec.go @@ -19,6 +19,10 @@ var ( Name: "privileged", Usage: "Give the process extended Linux capabilities inside the container. The default is false", }, + cli.BoolFlag{ + Name: "interactive, i", + Usage: "Not supported. All exec commands are interactive by default.", + }, cli.BoolFlag{ Name: "tty, t", Usage: "Allocate a pseudo-TTY. The default is false", @@ -36,13 +40,14 @@ var ( ` execCommand = cli.Command{ - Name: "exec", - Usage: "Run a process in a running container", - Description: execDescription, - Flags: execFlags, - Action: execCmd, - ArgsUsage: "CONTAINER-NAME", - SkipArgReorder: true, + Name: "exec", + Usage: "Run a process in a running container", + Description: execDescription, + Flags: execFlags, + Action: execCmd, + ArgsUsage: "CONTAINER-NAME", + SkipArgReorder: true, + UseShortOptionHandling: true, } ) -- cgit v1.2.3-54-g00ecf