summaryrefslogtreecommitdiff
path: root/cmd/podman/attach.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-02-11 19:19:19 -0700
committerDaniel J Walsh <dwalsh@redhat.com>2019-02-12 05:14:38 -0700
commitccbc4fb006253788910eba86eb6674d3465992c3 (patch)
treed906767a8c57215b97ccfe979fe4beb201b14f64 /cmd/podman/attach.go
parentea20ead35b69b1259f2ff3b00f558c473a921b95 (diff)
downloadpodman-ccbc4fb006253788910eba86eb6674d3465992c3.tar.gz
podman-ccbc4fb006253788910eba86eb6674d3465992c3.tar.bz2
podman-ccbc4fb006253788910eba86eb6674d3465992c3.zip
Don't show global flags except for podman command
Subcommands should not be showing the global flags. This causes the important information to scroll off the screen. Also fixed a typo on runCommmand (Too many 'm's) Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/attach.go')
-rw-r--r--cmd/podman/attach.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/attach.go b/cmd/podman/attach.go
index ecba91a90..c29886825 100644
--- a/cmd/podman/attach.go
+++ b/cmd/podman/attach.go
@@ -28,6 +28,7 @@ var (
func init() {
attachCommand.Command = _attachCommand
+ attachCommand.SetUsageTemplate(UsageTemplate())
flags := attachCommand.Flags()
flags.StringVar(&attachCommand.DetachKeys, "detach-keys", "", "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _")
flags.BoolVar(&attachCommand.NoStdin, "no-stdin", false, "Do not attach STDIN. The default is false")