aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/exec.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-04-11 08:56:36 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-11 15:02:50 +0000
commit22c00ceebbc0d028af94bffdf5a289ff54e1830f (patch)
tree3fabfa881110d026691495ffc2f10fe6e004b2cc /cmd/podman/exec.go
parent864b9c06c08b1c1649c5b845029404f7c275408d (diff)
downloadpodman-22c00ceebbc0d028af94bffdf5a289ff54e1830f.tar.gz
podman-22c00ceebbc0d028af94bffdf5a289ff54e1830f.tar.bz2
podman-22c00ceebbc0d028af94bffdf5a289ff54e1830f.zip
Add -i to exec for compatibility reasons
No change to functionality Issue: #606 Signed-off-by: baude <bbaude@redhat.com> Closes: #607 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/exec.go')
-rw-r--r--cmd/podman/exec.go19
1 files changed, 12 insertions, 7 deletions
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
@@ -20,6 +20,10 @@ var (
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,
}
)