summaryrefslogtreecommitdiff
path: root/cmd/podman/start.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-06 02:48:24 -0800
committerGitHub <noreply@github.com>2019-12-06 02:48:24 -0800
commite9c48206019be6b95b5cc8700945b773a857ae26 (patch)
treea2581eb3bc67fef65a2f3834afd34f11c8df5d03 /cmd/podman/start.go
parent5c6eb1a94eb2688b28209997cbf18fa4aff97fe0 (diff)
parent7fa5d9b39dee645c98f0c4d585dcdd7487b17ccf (diff)
downloadpodman-e9c48206019be6b95b5cc8700945b773a857ae26.tar.gz
podman-e9c48206019be6b95b5cc8700945b773a857ae26.tar.bz2
podman-e9c48206019be6b95b5cc8700945b773a857ae26.zip
Merge pull request #4651 from marcov/detach-config
Use terminal detach keys sequence specified in the config file
Diffstat (limited to 'cmd/podman/start.go')
-rw-r--r--cmd/podman/start.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go
index d4b4534bb..a070cd18d 100644
--- a/cmd/podman/start.go
+++ b/cmd/podman/start.go
@@ -35,6 +35,9 @@ func init() {
startCommand.SetUsageTemplate(UsageTemplate())
flags := startCommand.Flags()
flags.BoolVarP(&startCommand.Attach, "attach", "a", false, "Attach container's STDOUT and STDERR")
+ // Clear the default, the value specified in the config file should have the
+ // priority
+ startCommand.DetachKeys = ""
flags.StringVar(&startCommand.DetachKeys, "detach-keys", define.DefaultDetachKeys, "Select the key sequence for detaching a container. Format is a single character `[a-Z]` or a comma separated sequence of `ctrl-<value>`, where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`")
flags.BoolVarP(&startCommand.Interactive, "interactive", "i", false, "Keep STDIN open even if not attached")
flags.BoolVarP(&startCommand.Latest, "latest", "l", false, "Act on the latest container podman is aware of")