summaryrefslogtreecommitdiff
path: root/cmd/podman/exists.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-27 13:49:29 +0100
committerGitHub <noreply@github.com>2019-02-27 13:49:29 +0100
commitf7f266e3618c6e4a9aa2c2c8c29ea40cf7087b0c (patch)
treea0ffdcc9a8dd55fa7e1dde65315dabc4b3b07480 /cmd/podman/exists.go
parent87f0b3678786f45ba13c772bf2f4331d3eed7010 (diff)
parenta20ff42134e0b4e3ba9d26c25d93df50e637fd69 (diff)
downloadpodman-f7f266e3618c6e4a9aa2c2c8c29ea40cf7087b0c.tar.gz
podman-f7f266e3618c6e4a9aa2c2c8c29ea40cf7087b0c.tar.bz2
podman-f7f266e3618c6e4a9aa2c2c8c29ea40cf7087b0c.zip
Merge pull request #2456 from edsantiago/better_synopses
Better usage synopses for subcommands
Diffstat (limited to 'cmd/podman/exists.go')
-rw-r--r--cmd/podman/exists.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/podman/exists.go b/cmd/podman/exists.go
index 74a4c841b..c01a6a081 100644
--- a/cmd/podman/exists.go
+++ b/cmd/podman/exists.go
@@ -32,7 +32,7 @@ var (
Check if a pod exists in local storage
`
_imageExistsCommand = &cobra.Command{
- Use: "exists",
+ Use: "exists IMAGE",
Short: "Check if an image exists in local storage",
Long: imageExistsDescription,
RunE: func(cmd *cobra.Command, args []string) error {
@@ -44,7 +44,7 @@ var (
}
_containerExistsCommand = &cobra.Command{
- Use: "exists",
+ Use: "exists CONTAINER",
Short: "Check if a container exists in local storage",
Long: containerExistsDescription,
RunE: func(cmd *cobra.Command, args []string) error {
@@ -57,7 +57,7 @@ var (
}
_podExistsCommand = &cobra.Command{
- Use: "exists",
+ Use: "exists POD",
Short: "Check if a pod exists in local storage",
Long: podExistsDescription,
RunE: func(cmd *cobra.Command, args []string) error {
@@ -71,10 +71,13 @@ var (
func init() {
imageExistsCommand.Command = _imageExistsCommand
+ imageExistsCommand.DisableFlagsInUseLine = true
imageExistsCommand.SetUsageTemplate(UsageTemplate())
containerExistsCommand.Command = _containerExistsCommand
+ containerExistsCommand.DisableFlagsInUseLine = true
containerExistsCommand.SetUsageTemplate(UsageTemplate())
podExistsCommand.Command = _podExistsCommand
+ podExistsCommand.DisableFlagsInUseLine = true
podExistsCommand.SetUsageTemplate(UsageTemplate())
}