summaryrefslogtreecommitdiff
path: root/cmd/podman/runlabel.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-18 22:14:57 +0100
committerGitHub <noreply@github.com>2019-02-18 22:14:57 +0100
commit228d1cbcd372b086669e35c1237fc5064b24ea7d (patch)
treebf8b47a997c76db0121295314ab1740411afeedf /cmd/podman/runlabel.go
parentc9b13133cdd9f59a000d40fce357c33919ef7032 (diff)
parent64853710e87ba124561653cb5d62ca3a653b4170 (diff)
downloadpodman-228d1cbcd372b086669e35c1237fc5064b24ea7d.tar.gz
podman-228d1cbcd372b086669e35c1237fc5064b24ea7d.tar.bz2
podman-228d1cbcd372b086669e35c1237fc5064b24ea7d.zip
Merge pull request #2361 from TomSweeneyRedHat/dev/tsweeney/cobraex4
Add 4th chunk of Cobra Examples
Diffstat (limited to 'cmd/podman/runlabel.go')
-rw-r--r--cmd/podman/runlabel.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/podman/runlabel.go b/cmd/podman/runlabel.go
index f1c61ebda..54f210e62 100644
--- a/cmd/podman/runlabel.go
+++ b/cmd/podman/runlabel.go
@@ -31,7 +31,9 @@ Executes a command as described by a container image label.
runlabelCommand.GlobalFlags = MainGlobalOpts
return runlabelCmd(&runlabelCommand)
},
- Example: "",
+ Example: `podman container runlabel run imageID
+ podman container runlabel --pull install imageID arg1 arg2
+ podman container runlabel --display run myImage`,
}
)
@@ -49,7 +51,7 @@ func init() {
flags.StringVar(&runlabelCommand.Opt2, "opt2", "", "Optional parameter to pass for install")
flags.StringVar(&runlabelCommand.Opt3, "opt3", "", "Optional parameter to pass for install")
flags.MarkHidden("opt1")
- flags.MarkHidden("opt3")
+ flags.MarkHidden("opt2")
flags.MarkHidden("opt3")
flags.BoolVarP(&runlabelCommand.Pull, "pull", "p", false, "Pull the image if it does not exist locally prior to executing the label contents")