diff options
author | Ed Santiago <santiago@redhat.com> | 2019-03-06 16:33:42 -0700 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2019-03-06 16:36:18 -0700 |
commit | e48d4197c1694404a2ecd8d7342edabe89825815 (patch) | |
tree | a51a7974b5de15b2d40185d8803f578c539d4f03 | |
parent | 02e2342d20a01c89236b4c2f2867e6acd8eda923 (diff) | |
download | podman-e48d4197c1694404a2ecd8d7342edabe89825815.tar.gz podman-e48d4197c1694404a2ecd8d7342edabe89825815.tar.bz2 podman-e48d4197c1694404a2ecd8d7342edabe89825815.zip |
Yet another seemingly minor tweak to usage message
Add explicit [flags] to podman healthcheck run Use message.
Reason: Cobra checks for the string '[flags]' in the Use text.
If absent, and command has options, Cobra appends it. This
is misleading to humans, because the --help output looks like:
podman healthcheck run CONTAINER [flags]
...when of course that won't work.
Signed-off-by: Ed Santiago <santiago@redhat.com>
-rw-r--r-- | cmd/podman/healthcheck_run.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/healthcheck_run.go b/cmd/podman/healthcheck_run.go index a91f87146..d92b2ac01 100644 --- a/cmd/podman/healthcheck_run.go +++ b/cmd/podman/healthcheck_run.go @@ -13,7 +13,7 @@ var ( healthcheckRunCommand cliconfig.HealthCheckValues healthcheckRunDescription = "run the health check of a container" _healthcheckrunCommand = &cobra.Command{ - Use: "run CONTAINER", + Use: "run [flags] CONTAINER", Short: "run the health check of a container", Long: healthcheckRunDescription, Example: `podman healthcheck run mywebapp`, |